Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit ba5106d

Browse files
committed
Fix merged whitespace
1 parent 3ccbc6d commit ba5106d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/endpoints/class-wp-rest-posts-controller.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ public function get_items( $request ) {
138138

139139
if ( $total_posts < 1 ) {
140140
// Out-of-bounds, run the query again without LIMIT for total count
141-
unset( $query_args['paged'] );
141+
unset( $query_args['paged'] );
142142
$count_query = new WP_Query();
143-
$query_result = $count_query->query( $query_args );
144-
$total_posts = $count_query->found_posts;
143+
$query_result = $count_query->query( $query_args );
144+
$total_posts = $count_query->found_posts;
145145
}
146146

147147
$max_pages = ceil( $total_posts / (int) $query_args['posts_per_page'] );
@@ -421,10 +421,10 @@ public function update_item( $request ) {
421421
}
422422

423423
/**
424-
* Check if a given request has access to delete a post.
424+
* Check if a given request has access to delete a post.
425425
*
426-
* @param WP_REST_Request $request Full details about the request.
427-
* @return bool|WP_Error
426+
* @param WP_REST_Request $request Full details about the request.
427+
* @return bool|WP_Error
428428
*/
429429
public function delete_item_permissions_check( $request ) {
430430

0 commit comments

Comments
 (0)