Plugin Directory

Changeset 3363339


Ignore:
Timestamp:
09/17/2025 03:35:25 PM (5 months ago)
Author:
flexmls
Message:

Flexmls WordPress plugin 3.15.2

Location:
flexmls-idx/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • flexmls-idx/trunk/README.txt

    r3358668 r3363339  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 3.15.1
     7Stable tag: 3.15.2
    88
    99Add Flexmls® IDX listings, market statistics, IDX searches, and a contact form on your web site.
     
    8686
    8787== Changelog ==
     88
     89= 3.15.2 =
     90Efficiency Update
     91* Added handles API edge cases with unexpected data types in search result pages
    8892
    8993= 3.15.1 =
  • flexmls-idx/trunk/components/v2/search-results.php

    r3281283 r3363339  
    3333        $this->search_criteria = $cleaned_raw_criteria;
    3434
    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'] : '';
    3636
    3737        //This unset was added to pull all information
     
    3939        //Set page size to cookie value
    4040
    41         if ( ! empty( $this->search_criteria['Limit'] ) ) {
     41        if ( is_array($this->search_criteria) && ! empty( $this->search_criteria['Limit'] ) ) {
    4242            $this->default_page_size = intval( $this->search_criteria['Limit'] );
    4343        }
  • flexmls-idx/trunk/flexmls_connect.php

    r3358668 r3363339  
    66Description: Provides Flexmls&reg; Customers with Flexmls&reg; IDX features on their WordPress websites. <strong>Tips:</strong> <a href="admin.php?page=fmc_admin_settings">Activate your Flexmls&reg; 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&reg; IDX Widget Short-Code Generator on the Visual page editor.
    77Author: FBS
    8 Version: 3.15.1
     8Version: 3.15.2
    99Author URI:  https://www.flexmls.com
    1010Requires at least: 5.0
     
    1717const FMC_API_BASE = 'sparkapi.com';
    1818const FMC_API_VERSION = 'v1';
    19 const FMC_PLUGIN_VERSION = '3.15.1';
     19const FMC_PLUGIN_VERSION = '3.15.2';
    2020
    2121define( 'FMC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • flexmls-idx/trunk/lib/flexmlsAPI/Core.php

    r3358668 r3363339  
    4444        'Accept-Encoding' => "gzip,deflate",
    4545        '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"
    4848    );
    4949
  • flexmls-idx/trunk/pages/search-results.php

    r3209984 r3363339  
    6060        $this->search_criteria = $cleaned_raw_criteria;
    6161
    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'] : '';
    6363
    6464        //This unset was added to pull all information
     
    6666        //Set page size to cookie value
    6767
    68     if ( ! empty( $this->search_criteria['Limit'] ) ) {
     68    if ( is_array($this->search_criteria) && ! empty( $this->search_criteria['Limit'] ) ) {
    6969      $this->default_page_size = intval( $this->search_criteria['Limit'] );
    7070    }
     
    212212                $list_class = ' active';
    213213            }
    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() );
    215215            ?>
    216216            <div class="flexmls_toggle-view">
     
    230230                    <?php if ( $fmc_api_portal->is_logged_in() ) : ?>
    231231                        <?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() );
    233233
    234234                            add_filter( 'flexmls_searchable_fields', [ 'flexmlsSearchUtil', 'remove_saved_search_from_searchable_fields' ] );
     
    315315                    $first_line_address       = htmlspecialchars( $listing_address[0] );
    316316                    $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();
    318318
    319319                    $this_result_overall_index = ( $this->page_size * ( $this->current_page - 1 ) ) + $result_count;
     
    374374            $one_line_address = htmlspecialchars($listing_address[2]);
    375375            $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();
    377377
    378378            $this_result_overall_index = ($this->page_size * ($this->current_page - 1)) + $result_count;
     
    710710
    711711    function make_pagination_link($page) {
    712             $page_conditions = $this->search_criteria;
     712            $page_conditions = is_array($this->search_criteria) ? $this->search_criteria : array();
    713713            $page_conditions['pg'] = $page;
    714714      $page_conditions['Limit'] = $this->page_size;
Note: See TracChangeset for help on using the changeset viewer.