Changeset 3449274
- Timestamp:
- 01/29/2026 06:37:26 AM (2 months ago)
- Location:
- pageapp
- Files:
-
- 18 added
- 2 edited
-
tags/1.4.6 (added)
-
tags/1.4.6/css (added)
-
tags/1.4.6/css/admin.css (added)
-
tags/1.4.6/images (added)
-
tags/1.4.6/images/pageapp20.png (added)
-
tags/1.4.6/inc (added)
-
tags/1.4.6/inc/cachelib.php (added)
-
tags/1.4.6/inc/httplib.php (added)
-
tags/1.4.6/inc/jsonlib.php (added)
-
tags/1.4.6/inc/pluginlib.php (added)
-
tags/1.4.6/inc/restlib.php (added)
-
tags/1.4.6/inc/settingslib.php (added)
-
tags/1.4.6/inc/utilslib.php (added)
-
tags/1.4.6/js (added)
-
tags/1.4.6/js/admin.js (added)
-
tags/1.4.6/pageapp-json.php (added)
-
tags/1.4.6/pageapp.php (added)
-
tags/1.4.6/readme.txt (added)
-
trunk/pageapp.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pageapp/trunk/pageapp.php
r3239961 r3449274 4 4 Plugin URI: https://wordpress.org/plugins/pageapp/ 5 5 Description: Extensions to Wordpress wp-json for the PageApp API and mobile framework 6 Version: 1.4. 56 Version: 1.4.6 7 7 Author: PageApp 8 8 Author URI: https://www.pageapp.com … … 49 49 public static function add_hooks() { 50 50 add_action('init', array(self::class, 'init')); 51 //add_action('init', array(self::class, 'init2'), 1); 51 52 add_action('rest_api_init', array(self::class, 'rest_api_init'), 20); 52 53 add_action('plugins_loaded', array(static::class, 'plugins_loaded')); … … 83 84 } 84 85 return $response; 86 } 87 public static function init2() { 88 if (get_option('pageapp_relevanssi') == '1') { 89 remove_filter('rest_api_init', 'relevanssi_rest_api_disable'); 90 } 85 91 } 86 92 public static function init() { … … 615 621 'posts_per_page' => $parameters['per_page'] ? intval($parameters['per_page']) : 10, 616 622 'paged' => $parameters['page'] ? intval($parameters['page']) : 0, 617 'post_type' => self::post_type(), 618 's' => $parameters['search'], 619 'cat' => implode(',', $parameters['categories']) 623 's' => $parameters['search'] 620 624 ); 625 $post_type = self::post_type(); 626 if ($post_type != 'search') { 627 $args['post_type'] = $post_type; 628 } 629 if (isset($parameters['categories']) && $parameters['categories']) { 630 $args['cat'] = implode(',', $parameters['categories']); 631 } 621 632 622 633 // Run search query -
pageapp/trunk/readme.txt
r3239961 r3449274 2 2 Contributors: jamesdlow 3 3 Tags: pageapp, wp-json, relevanssi, search, api, rest api, post, meta, post meta 4 Requires at least: 3.05 Tested up to: 6. 7.26 Stable tag: 1.4.54 Requires at least: 4.0 5 Tested up to: 6.9.0 6 Stable tag: trunk 7 7 License: © 2024 Thireen32 Pty Ltd 8 8 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=K6VKWB3HZB2T2&item_name=Donation%20to%20jameslow%2ecom¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8 … … 28 28 29 29 == Changelog == 30 31 = 1.4.6 = 32 * Fix search filter with no category 30 33 31 34 = 1.4.5 =
Note: See TracChangeset
for help on using the changeset viewer.