diff --git a/includes/blocks/site-automation-block/register.php b/includes/blocks/site-automation-block/register.php index d2962017..7a0e7557 100644 --- a/includes/blocks/site-automation-block/register.php +++ b/includes/blocks/site-automation-block/register.php @@ -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, diff --git a/includes/classes/SiteAutomation/Request.php b/includes/classes/SiteAutomation/Request.php index 1ef81c1e..df86cff0 100644 --- a/includes/classes/SiteAutomation/Request.php +++ b/includes/classes/SiteAutomation/Request.php @@ -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 ]