Changeset 2403517
- Timestamp:
- 10/20/2020 07:16:18 PM (5 years ago)
- Location:
- showcase-idx/trunk
- Files:
-
- 3 edited
-
3/routes.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
showcaseidx.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
showcase-idx/trunk/3/routes.php
r2030748 r2403517 2 2 3 3 add_filter( 'do_parse_request', 'showcaseidx_parse_request', -10, 2 ); 4 function showcaseidx_parse_request( $ bool, WP $wp ) {4 function showcaseidx_parse_request( $continueParsingRequest, WP $wp ) { 5 5 $url = parse_url( $_SERVER['REQUEST_URI'] ); 6 6 $home_url = parse_url( get_home_url() ); … … 28 28 // Default Search Page -- this section needs to go last 29 29 if ( preg_match( '#^' . $base . get_option( 'showcaseidx_search_page' ) . '($|/.*)#', $url['path'], $matches ) ) { 30 // Flag WP to not continue parsing the request; we *OWN* our `showcaseidx_search_page` namespace!!! 31 $continueParsingRequest = false; 32 $wp->query_vars = []; 30 33 34 // grab our info from the URL 31 35 $path = $matches[1]; 32 $query = !isset( $url['query'] ) ?: $url['query'];33 36 34 37 if ( $path == '' ) { … … 38 41 } 39 42 43 // render our page 44 $query = !isset( $url['query'] ) ?: $url['query']; 40 45 showcase_render_search_page( $wp, $path, $query ); 41 46 } 42 47 43 return $ bool;48 return $continueParsingRequest; 44 49 } 45 50 -
showcase-idx/trunk/readme.txt
r2391079 r2403517 5 5 Tested up to: 5.5.1 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.1. 37 Stable tag: 3.1.4 8 8 9 9 The ideal plugin for adding MLS search to your website, portal-quality search, lead generation, and SEO that works. -
showcase-idx/trunk/showcaseidx.php
r2391079 r2403517 6 6 * Author: Showcase IDX 7 7 * Author URI: https://showcaseidx.com/ 8 * Version: 3.1. 38 * Version: 3.1.4 9 9 */ 10 10
Note: See TracChangeset
for help on using the changeset viewer.