Changeset 2730935
- Timestamp:
- 05/25/2022 03:35:38 PM (4 years ago)
- Location:
- searchwp-live-ajax-search
- Files:
-
- 12 edited
- 1 copied
-
tags/1.6.3 (copied) (copied from searchwp-live-ajax-search/trunk)
-
tags/1.6.3/includes/class-client.php (modified) (4 diffs)
-
tags/1.6.3/includes/class-relevanssi-bridge.php (modified) (1 diff)
-
tags/1.6.3/includes/class-template.php (modified) (1 diff)
-
tags/1.6.3/includes/class-widget.php (modified) (1 diff)
-
tags/1.6.3/readme.txt (modified) (1 diff)
-
tags/1.6.3/searchwp-live-ajax-search.php (modified) (3 diffs)
-
trunk/includes/class-client.php (modified) (4 diffs)
-
trunk/includes/class-relevanssi-bridge.php (modified) (1 diff)
-
trunk/includes/class-template.php (modified) (1 diff)
-
trunk/includes/class-widget.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/searchwp-live-ajax-search.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
searchwp-live-ajax-search/tags/1.6.3/includes/class-client.php
r2683712 r2730935 143 143 $results = new \SWP_Query( array( 144 144 's' => $query, 145 'engine' => isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : 'default',145 'engine' => isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : 'default', 146 146 'fields' => 'ids', 147 147 'posts_per_page' => $this->get_posts_per_page(), … … 162 162 add_filter( 'searchwp_load_posts', '__return_false' ); 163 163 164 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : 'default';164 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : 'default'; 165 165 166 166 // Grab our post IDs. … … 185 185 * 186 186 * @uses query_posts() to prep the WordPress environment in it's entirety for the template loader 187 * @uses sanitize_ text_field() to sanitize input187 * @uses sanitize_key() to sanitize input 188 188 * @uses SearchWP_Live_Search_Template 189 189 * @uses SearchWP_Live_Search_Template::get_template_part() to load the proper results template … … 205 205 206 206 // Optionally pass along the SearchWP engine if applicable. 207 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : '';207 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : ''; 208 208 209 209 // Output the results using the results template. -
searchwp-live-ajax-search/tags/1.6.3/includes/class-relevanssi-bridge.php
r946225 r2730935 1 1 <?php 2 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 2 7 3 8 // class written by https://wordpress.org/plugins/daves-wordpress-live-search/ -
searchwp-live-ajax-search/tags/1.6.3/includes/class-template.php
r2140136 r2730935 2 2 3 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) exit; 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 5 7 6 8 /** -
searchwp-live-ajax-search/tags/1.6.3/includes/class-widget.php
r2455620 r2730935 1 1 <?php 2 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 2 7 3 8 /** -
searchwp-live-ajax-search/tags/1.6.3/readme.txt
r2683712 r2730935 77 77 == Changelog == 78 78 79 = 1.6.3 = 80 * Improves sanitization of the 'swpengine' search field argument. 81 * Standardizes direct access restrictions in classes throughout the plugin. 82 79 83 = 1.6.2 = 80 84 * Limits the arguments passed to the query when used with the WordPress native search. -
searchwp-live-ajax-search/tags/1.6.3/searchwp-live-ajax-search.php
r2683712 r2730935 4 4 Plugin URI: https://searchwp.com/ 5 5 Description: Enhance your search forms with live search, powered by SearchWP (if installed) 6 Version: 1.6. 26 Version: 1.6.3 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 45 45 public $dir; 46 46 public $url; 47 public $version = '1.6. 2';47 public $version = '1.6.3'; 48 48 public $results = array(); 49 49 … … 66 66 } 67 67 68 if ( version_compare( $this->last_version, '1.6. 2', '<' ) ) {68 if ( version_compare( $this->last_version, '1.6.3', '<' ) ) { 69 69 update_option( 'searchwp_live_search_last_update', current_time( 'timestamp' ) ); 70 70 $this->after_upgrade(); -
searchwp-live-ajax-search/trunk/includes/class-client.php
r2683712 r2730935 143 143 $results = new \SWP_Query( array( 144 144 's' => $query, 145 'engine' => isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : 'default',145 'engine' => isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : 'default', 146 146 'fields' => 'ids', 147 147 'posts_per_page' => $this->get_posts_per_page(), … … 162 162 add_filter( 'searchwp_load_posts', '__return_false' ); 163 163 164 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : 'default';164 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : 'default'; 165 165 166 166 // Grab our post IDs. … … 185 185 * 186 186 * @uses query_posts() to prep the WordPress environment in it's entirety for the template loader 187 * @uses sanitize_ text_field() to sanitize input187 * @uses sanitize_key() to sanitize input 188 188 * @uses SearchWP_Live_Search_Template 189 189 * @uses SearchWP_Live_Search_Template::get_template_part() to load the proper results template … … 205 205 206 206 // Optionally pass along the SearchWP engine if applicable. 207 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_ text_field( $_REQUEST['swpengine'] ) : '';207 $engine = isset( $_REQUEST['swpengine'] ) ? sanitize_key( $_REQUEST['swpengine'] ) : ''; 208 208 209 209 // Output the results using the results template. -
searchwp-live-ajax-search/trunk/includes/class-relevanssi-bridge.php
r946225 r2730935 1 1 <?php 2 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 2 7 3 8 // class written by https://wordpress.org/plugins/daves-wordpress-live-search/ -
searchwp-live-ajax-search/trunk/includes/class-template.php
r2140136 r2730935 2 2 3 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) exit; 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 5 7 6 8 /** -
searchwp-live-ajax-search/trunk/includes/class-widget.php
r2455620 r2730935 1 1 <?php 2 3 // exit if accessed directly 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; 6 } 2 7 3 8 /** -
searchwp-live-ajax-search/trunk/readme.txt
r2683712 r2730935 77 77 == Changelog == 78 78 79 = 1.6.3 = 80 * Improves sanitization of the 'swpengine' search field argument. 81 * Standardizes direct access restrictions in classes throughout the plugin. 82 79 83 = 1.6.2 = 80 84 * Limits the arguments passed to the query when used with the WordPress native search. -
searchwp-live-ajax-search/trunk/searchwp-live-ajax-search.php
r2683712 r2730935 4 4 Plugin URI: https://searchwp.com/ 5 5 Description: Enhance your search forms with live search, powered by SearchWP (if installed) 6 Version: 1.6. 26 Version: 1.6.3 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 45 45 public $dir; 46 46 public $url; 47 public $version = '1.6. 2';47 public $version = '1.6.3'; 48 48 public $results = array(); 49 49 … … 66 66 } 67 67 68 if ( version_compare( $this->last_version, '1.6. 2', '<' ) ) {68 if ( version_compare( $this->last_version, '1.6.3', '<' ) ) { 69 69 update_option( 'searchwp_live_search_last_update', current_time( 'timestamp' ) ); 70 70 $this->after_upgrade();
Note: See TracChangeset
for help on using the changeset viewer.