diff --git a/inc/endpoints/class-wp-rest-dones-dones-controller.php b/inc/endpoints/class-wp-rest-dones-dones-controller.php index 63af09b45..eb2e55f3f 100644 --- a/inc/endpoints/class-wp-rest-dones-dones-controller.php +++ b/inc/endpoints/class-wp-rest-dones-dones-controller.php @@ -219,7 +219,7 @@ public function prepare_item_for_response( $post, $request ) { 'user' => (int) $post->post_author, 'text' => $post->post_title, 'date' => $post->post_date, - 'done' => ( 'publish' === $post->post_status ) + 'done' => ( 'draft' !== $post->post_status ) ); } @@ -232,7 +232,7 @@ public function prepare_item_for_response( $post, $request ) { public function get_done_base_args( $request ) { $args = array( 'post_type' => 'done', - 'post_status' => array( 'publish', 'draft' ), + 'post_status' => array( 'publish', 'draft', 'future' ), 'orderby' => 'date', 'order' => 'desc', 'paged' => (int) $request['page']