diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index 76ca226c59156..0656a2f3a4296 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -1935,6 +1935,12 @@ public function prepare_item_for_response( $item, $request ) { $data['meta'] = $this->meta->get_value( $post->ID, $request ); } + if ( 'wp_block' === $this->post_type ) { + unset( $data['meta']['sync_status'] ); + $wp_block_meta = $this->meta->get_value( $post->ID, $request ); + $data['sync_status'] = $wp_block_meta['sync_status']; + } + $taxonomies = wp_list_filter( get_object_taxonomies( $this->post_type, 'objects' ), array( 'show_in_rest' => true ) ); foreach ( $taxonomies as $taxonomy ) {