This repository was archived by the owner on Sep 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments