From 253cf825bb18ba6a5a7d22c3cec4034b9a09bfe3 Mon Sep 17 00:00:00 2001 From: Mehul Gohil Date: Sat, 6 Jul 2024 16:11:38 +0530 Subject: [PATCH] revert the default post type to just post --- includes/rest-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rest-api.php b/includes/rest-api.php index a0e814c33..5cc2b656e 100644 --- a/includes/rest-api.php +++ b/includes/rest-api.php @@ -623,7 +623,7 @@ function check_post_types_permissions() { * @return \WP_REST_Response|\WP_Error */ function get_pull_content_list( $request ) { - $post_type = ! empty( $request['post_type'] ) ? $request['post_type'] : array( 'post', 'page' ); + $post_type = ! empty( $request['post_type'] ) ? $request['post_type'] : array( 'post' ); $args = [ 'posts_per_page' => isset( $request['posts_per_page'] ) ? $request['posts_per_page'] : 20, 'paged' => isset( $request['page'] ) ? $request['page'] : 1,