Skip to content

Commit

Permalink
revert the default post type to just post
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul0810 committed Jul 6, 2024
1 parent ce538c4 commit 253cf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 253cf82

Please sign in to comment.