Changeset 3363339
- Timestamp:
- 09/17/2025 03:35:25 PM (5 months ago)
- Location:
- flexmls-idx/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
components/v2/search-results.php (modified) (2 diffs)
-
flexmls_connect.php (modified) (2 diffs)
-
lib/flexmlsAPI/Core.php (modified) (1 diff)
-
pages/search-results.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flexmls-idx/trunk/README.txt
r3358668 r3363339 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 3.15. 17 Stable tag: 3.15.2 8 8 9 9 Add Flexmls® IDX listings, market statistics, IDX searches, and a contact form on your web site. … … 86 86 87 87 == Changelog == 88 89 = 3.15.2 = 90 Efficiency Update 91 * Added handles API edge cases with unexpected data types in search result pages 88 92 89 93 = 3.15.1 = -
flexmls-idx/trunk/components/v2/search-results.php
r3281283 r3363339 33 33 $this->search_criteria = $cleaned_raw_criteria; 34 34 35 $this->order_by = $this->search_criteria['OrderBy'];35 $this->order_by = is_array($this->search_criteria) && isset($this->search_criteria['OrderBy']) ? $this->search_criteria['OrderBy'] : ''; 36 36 37 37 //This unset was added to pull all information … … 39 39 //Set page size to cookie value 40 40 41 if ( ! empty( $this->search_criteria['Limit'] ) ) {41 if ( is_array($this->search_criteria) && ! empty( $this->search_criteria['Limit'] ) ) { 42 42 $this->default_page_size = intval( $this->search_criteria['Limit'] ); 43 43 } -
flexmls-idx/trunk/flexmls_connect.php
r3358668 r3363339 6 6 Description: Provides Flexmls® Customers with Flexmls® IDX features on their WordPress websites. <strong>Tips:</strong> <a href="admin.php?page=fmc_admin_settings">Activate your Flexmls® IDX plugin</a> on the settings page; <a href="widgets.php">add widgets to your sidebar</a> using the Widgets Admin under Appearance; and include widgets on your posts or pages using the Flexmls® IDX Widget Short-Code Generator on the Visual page editor. 7 7 Author: FBS 8 Version: 3.15. 18 Version: 3.15.2 9 9 Author URI: https://www.flexmls.com 10 10 Requires at least: 5.0 … … 17 17 const FMC_API_BASE = 'sparkapi.com'; 18 18 const FMC_API_VERSION = 'v1'; 19 const FMC_PLUGIN_VERSION = '3.15. 1';19 const FMC_PLUGIN_VERSION = '3.15.2'; 20 20 21 21 define( 'FMC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
flexmls-idx/trunk/lib/flexmlsAPI/Core.php
r3358668 r3363339 44 44 'Accept-Encoding' => "gzip,deflate", 45 45 'Content-Type' => "application/json", 46 'User-Agent' => "FlexMLS WordPress Plugin/3.15. 1",47 'X-SparkApi-User-Agent' => "flexmls-WordPress-Plugin/3.15. 1"46 'User-Agent' => "FlexMLS WordPress Plugin/3.15.2", 47 'X-SparkApi-User-Agent' => "flexmls-WordPress-Plugin/3.15.2" 48 48 ); 49 49 -
flexmls-idx/trunk/pages/search-results.php
r3209984 r3363339 60 60 $this->search_criteria = $cleaned_raw_criteria; 61 61 62 $this->order_by = $this->search_criteria['OrderBy'];62 $this->order_by = is_array($this->search_criteria) && isset($this->search_criteria['OrderBy']) ? $this->search_criteria['OrderBy'] : ''; 63 63 64 64 //This unset was added to pull all information … … 66 66 //Set page size to cookie value 67 67 68 if ( ! empty( $this->search_criteria['Limit'] ) ) {68 if ( is_array($this->search_criteria) && ! empty( $this->search_criteria['Limit'] ) ) { 69 69 $this->default_page_size = intval( $this->search_criteria['Limit'] ); 70 70 } … … 212 212 $list_class = ' active'; 213 213 } 214 $link = flexmlsConnect::make_nice_tag_url( 'search', $this->search_criteria);214 $link = flexmlsConnect::make_nice_tag_url( 'search', is_array($this->search_criteria) ? $this->search_criteria : array() ); 215 215 ?> 216 216 <div class="flexmls_toggle-view"> … … 230 230 <?php if ( $fmc_api_portal->is_logged_in() ) : ?> 231 231 <?php 232 $is_existing_saved_search = flexmlsSearchUtil::is_existing_saved_search( $this->search_criteria);232 $is_existing_saved_search = flexmlsSearchUtil::is_existing_saved_search( is_array($this->search_criteria) ? $this->search_criteria : array() ); 233 233 234 234 add_filter( 'flexmls_searchable_fields', [ 'flexmlsSearchUtil', 'remove_saved_search_from_searchable_fields' ] ); … … 315 315 $first_line_address = htmlspecialchars( $listing_address[0] ); 316 316 $second_line_address = htmlspecialchars( $listing_address[1] ); 317 $link_to_details_criteria = $this->search_criteria;317 $link_to_details_criteria = is_array($this->search_criteria) ? $this->search_criteria : array(); 318 318 319 319 $this_result_overall_index = ( $this->page_size * ( $this->current_page - 1 ) ) + $result_count; … … 374 374 $one_line_address = htmlspecialchars($listing_address[2]); 375 375 $one_line_address_add_slashes = addslashes($listing_address[2]); 376 $link_to_details_criteria = $this->search_criteria;376 $link_to_details_criteria = is_array($this->search_criteria) ? $this->search_criteria : array(); 377 377 378 378 $this_result_overall_index = ($this->page_size * ($this->current_page - 1)) + $result_count; … … 710 710 711 711 function make_pagination_link($page) { 712 $page_conditions = $this->search_criteria;712 $page_conditions = is_array($this->search_criteria) ? $this->search_criteria : array(); 713 713 $page_conditions['pg'] = $page; 714 714 $page_conditions['Limit'] = $this->page_size;
Note: See TracChangeset
for help on using the changeset viewer.