Skip to content

Commit

Permalink
Look for any post_status
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarssanchez committed Jun 21, 2022
1 parent 8fdf270 commit f920ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/blocks/site-automation-block/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function render_block_callback( $attributes, $content, $block ) {
[
'post_name__in' => [ "sophi-site-automation-data-{$page_name}-{$widget_name}" ],
'post_type' => 'sophi-response',
'post_status' => 'draft',
'post_status' => 'any',
'posts_per_page' => 1,
'fields' => 'ids',
'no_found_rows' => true,
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/SiteAutomation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function get( $page, $widget, $timeout = 3 ) {
'post_type' => 'sophi-response',
'posts_per_page' => 1,
'fields' => 'ids',
'post_status' => 'draft',
'post_status' => 'any',
'no_found_rows' => true,
'update_post_term_cache' => false
]
Expand Down

0 comments on commit f920ea9

Please sign in to comment.