Changeset 1394427
- Timestamp:
- 04/13/2016 04:43:10 PM (10 years ago)
- Location:
- rest-api-search/trunk
- Files:
-
- 3 edited
-
lib/class-wp-rest-search-controller.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
rest-api-search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rest-api-search/trunk/lib/class-wp-rest-search-controller.php
r1393395 r1394427 330 330 $search = $request->get_param ( 'search' ); 331 331 $page = $request->get_param ( 'page' ); 332 $postsPerPage = get_option('posts_per_page'); 333 334 if( ! $postsPerPage ) 335 $postsPerPage = 10; 332 336 333 337 if ( empty( $page ) ) { … … 338 342 $search = implode ( ' ', explode ( "+", $search ) ); 339 343 $search = urldecode ( $search ); 340 344 341 345 $query = new WP_Query(); 342 346 … … 344 348 'paged' => $page, 345 349 'post_type' => 'any', 346 'posts_per_page' => 10,350 'posts_per_page' => $postsPerPage, 347 351 's' => $search 348 352 ) ); -
rest-api-search/trunk/readme.txt
r1393395 r1394427 5 5 Requires at least: 4.4 6 6 Tested up to: 4.4.2 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 = 1.3 = 78 78 * Now allows for encoded characters and numbers in the url 79 80 = 1.4 = 81 * WordPress's posts per page settings now are used. -
rest-api-search/trunk/rest-api-search.php
r1393395 r1394427 4 4 Plugin URI: https://github.com/KCPT19/REST-API-Search 5 5 Description: Adds in the missing search functionality of all post types to the REST API v2 plugin. 6 Version: 1. 36 Version: 1.4 7 7 Author: KCPT 8 8 Author URI: https://github.com/orgs/KCPT19
Note: See TracChangeset
for help on using the changeset viewer.