diff --git a/CHANGELOG b/CHANGELOG index 97a3b96..76cc99b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Changelog +## 2.8.2 +* FIX: Add error handling for openhouses API requests + ## 2.8.1 * ENHANCEMENT: Add support for open houses short-code and search results. diff --git a/src/readme.txt b/src/readme.txt index 6cf5a09..c7c9f96 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Contributors: SimplyRETS Tags: rets, idx, idx plugin, mls, mls listings, real estate, simply rets, realtor, rets feed, idx feed Requires at least: 3.0.1 Tested up to: 5.3.0 -Stable tag: 2.8.1 +Stable tag: 2.8.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -236,6 +236,9 @@ listing sidebar widget. == Changelog == += 2.8.2 = +* FIX: Add error handling for openhouses API requests + = 2.8.1 = * ENHANCEMENT: Add support for open houses short-code and search results. diff --git a/src/simply-rets-api-helper.php b/src/simply-rets-api-helper.php index e3f5f9d..5ff7db8 100644 --- a/src/simply-rets-api-helper.php +++ b/src/simply-rets-api-helper.php @@ -119,7 +119,7 @@ public static function srApiOptionsRequest( $url ) { $php_version = phpversion(); $site_url = get_site_url(); - $ua_string = "SimplyRETSWP/2.8.1 Wordpress/{$wp_version} PHP/{$php_version}"; + $ua_string = "SimplyRETSWP/2.8.2 Wordpress/{$wp_version} PHP/{$php_version}"; $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; if( is_callable( 'curl_init' ) ) { @@ -240,7 +240,7 @@ public static function srApiRequest( $url ) { $wp_version = get_bloginfo('version'); $php_version = phpversion(); - $ua_string = "SimplyRETSWP/2.8.1 Wordpress/{$wp_version} PHP/{$php_version}"; + $ua_string = "SimplyRETSWP/2.8.2 Wordpress/{$wp_version} PHP/{$php_version}"; $accept_header = "Accept: application/json; q=0.2, application/vnd.simplyrets-v0.1+json"; if( is_callable( 'curl_init' ) ) { diff --git a/src/simply-rets.php b/src/simply-rets.php index d4db4e7..7425466 100644 --- a/src/simply-rets.php +++ b/src/simply-rets.php @@ -4,7 +4,7 @@ Plugin URI: https://simplyrets.com Description: Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings. Author: SimplyRETS -Version: 2.8.1 +Version: 2.8.2 License: GNU General Public License v3 or later Copyright (c) SimplyRETS 2014 - 2015