Plugin Directory

Changeset 2972401


Ignore:
Timestamp:
09/27/2023 08:23:56 PM (3 years ago)
Author:
SimplyRETS
Message:

v2.10.4 release

Location:
simply-rets
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simply-rets/tags/2.10.4/readme.txt

    r2946831 r2972401  
    55Requires at least: 3.0.1
    66Tested up to: 6.1
    7 Stable tag: 2.10.3
     7Stable tag: 2.10.4
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    237237
    238238== Changelog ==
     239
     240= 2.10.4 =
     241* FIX: Fix misc PHP warnings on single listing page
    239242
    240243= 2.10.3 =
  • simply-rets/tags/2.10.4/simply-rets-api-helper.php

    r2946831 r2972401  
    125125        $site_url = get_site_url();
    126126
    127         $ua_string     = "SimplyRETSWP/2.10.3 Wordpress/{$wp_version} PHP/{$php_version}";
     127        $ua_string     = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}";
    128128        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    129129
     
    236236        $php_version = phpversion();
    237237
    238         $ua_string     = "SimplyRETSWP/2.10.3 Wordpress/{$wp_version} PHP/{$php_version}";
     238        $ua_string     = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}";
    239239        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    240240
     
    571571        if($listing == NULL
    572572           || property_exists($listing, "error")
     573           || property_exists($listing, "message")
    573574           || property_exists($listing, "errors")) {
    574575            $err = SrMessages::noResultsMsg((array)$listing);
     
    918919
    919920        // school data
    920         $listing_school_district = $listing->school->district;
     921        $has_school_data = !empty($listing->school);
     922
     923        $listing_school_district = $has_school_data ? $listing->school->district : NULL;
    921924        $school_district = SimplyRetsApiHelper::srDetailsTable($listing_school_district, "District");
    922925        // elementary school
    923         $listing_elementary = $listing->school->elementarySchool;
     926        $listing_elementary = $has_school_data ? $listing->school->elementarySchool : NULL;
    924927        $school_elementary = SimplyRetsApiHelper::srDetailsTable($listing_elementary, "Elementary School");
    925928        // middle school
    926         $listing_middle_school = $listing->school->middleSchool;
     929        $listing_middle_school = $has_school_data ? $listing->school->middleSchool : NULL;
    927930        $school_middle = SimplyRetsApiHelper::srDetailsTable($listing_middle_school, "Middle School");
    928931        // high school
    929         $listing_high_school = $listing->school->highSchool;
     932        $listing_high_school = $has_school_data ? $listing->school->highSchool : NULL;
    930933        $school_high = SimplyRetsApiHelper::srDetailsTable($listing_high_school, "High School");
    931934
     
    11031106        }
    11041107
    1105 
    11061108        /**
    11071109         * Create the custom compliance markup for map marker
     
    11091111        $compliance_markup = SrUtils::mkListingSummaryCompliance($listing_office, $listing_agent_name);
    11101112
    1111 
    11121113        /**
    11131114         * Find available contact information to display
    11141115         * Then, create the "Listing by" markup
    11151116         */
    1116         $attribution_contact = property_exists($complianceData, "attributionContact")
     1117        $attribution_contact = !empty($complianceData)
     1118                               && property_exists($complianceData, "attributionContact")
    11171119                             ? $complianceData->attributionContact
    11181120                             : NULL;
  • simply-rets/tags/2.10.4/simply-rets.php

    r2946831 r2972401  
    55Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings.
    66Author: SimplyRETS
    7 Version: 2.10.3
     7Version: 2.10.4
    88License: GNU General Public License v3 or later
    99
  • simply-rets/trunk/readme.txt

    r2946831 r2972401  
    55Requires at least: 3.0.1
    66Tested up to: 6.1
    7 Stable tag: 2.10.3
     7Stable tag: 2.10.4
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    237237
    238238== Changelog ==
     239
     240= 2.10.4 =
     241* FIX: Fix misc PHP warnings on single listing page
    239242
    240243= 2.10.3 =
  • simply-rets/trunk/simply-rets-api-helper.php

    r2946831 r2972401  
    125125        $site_url = get_site_url();
    126126
    127         $ua_string     = "SimplyRETSWP/2.10.3 Wordpress/{$wp_version} PHP/{$php_version}";
     127        $ua_string     = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}";
    128128        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    129129
     
    236236        $php_version = phpversion();
    237237
    238         $ua_string     = "SimplyRETSWP/2.10.3 Wordpress/{$wp_version} PHP/{$php_version}";
     238        $ua_string     = "SimplyRETSWP/2.10.4 Wordpress/{$wp_version} PHP/{$php_version}";
    239239        $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json";
    240240
     
    571571        if($listing == NULL
    572572           || property_exists($listing, "error")
     573           || property_exists($listing, "message")
    573574           || property_exists($listing, "errors")) {
    574575            $err = SrMessages::noResultsMsg((array)$listing);
     
    918919
    919920        // school data
    920         $listing_school_district = $listing->school->district;
     921        $has_school_data = !empty($listing->school);
     922
     923        $listing_school_district = $has_school_data ? $listing->school->district : NULL;
    921924        $school_district = SimplyRetsApiHelper::srDetailsTable($listing_school_district, "District");
    922925        // elementary school
    923         $listing_elementary = $listing->school->elementarySchool;
     926        $listing_elementary = $has_school_data ? $listing->school->elementarySchool : NULL;
    924927        $school_elementary = SimplyRetsApiHelper::srDetailsTable($listing_elementary, "Elementary School");
    925928        // middle school
    926         $listing_middle_school = $listing->school->middleSchool;
     929        $listing_middle_school = $has_school_data ? $listing->school->middleSchool : NULL;
    927930        $school_middle = SimplyRetsApiHelper::srDetailsTable($listing_middle_school, "Middle School");
    928931        // high school
    929         $listing_high_school = $listing->school->highSchool;
     932        $listing_high_school = $has_school_data ? $listing->school->highSchool : NULL;
    930933        $school_high = SimplyRetsApiHelper::srDetailsTable($listing_high_school, "High School");
    931934
     
    11031106        }
    11041107
    1105 
    11061108        /**
    11071109         * Create the custom compliance markup for map marker
     
    11091111        $compliance_markup = SrUtils::mkListingSummaryCompliance($listing_office, $listing_agent_name);
    11101112
    1111 
    11121113        /**
    11131114         * Find available contact information to display
    11141115         * Then, create the "Listing by" markup
    11151116         */
    1116         $attribution_contact = property_exists($complianceData, "attributionContact")
     1117        $attribution_contact = !empty($complianceData)
     1118                               && property_exists($complianceData, "attributionContact")
    11171119                             ? $complianceData->attributionContact
    11181120                             : NULL;
  • simply-rets/trunk/simply-rets.php

    r2946831 r2972401  
    55Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings.
    66Author: SimplyRETS
    7 Version: 2.10.3
     7Version: 2.10.4
    88License: GNU General Public License v3 or later
    99
Note: See TracChangeset for help on using the changeset viewer.