From 0c1b3b7ef1736a533db4273c11993923e3199709 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Sat, 15 Feb 2020 10:13:54 +0700 Subject: [PATCH] Hotfix single property settings --- changelog.txt | 3 +++ inc/property/class-opalestate-property.php | 8 ++++---- opal-estate-pro.php | 6 +++--- readme.txt | 5 ++++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/changelog.txt b/changelog.txt index 1c6249ec..017ff4eb 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 1.3.2 - 2020-02-15 = +* Fixes - Hotfix single property settings. + = 1.3.1 - 2020-02-14 = * Added - Single Property Custom Sidebar. diff --git a/inc/property/class-opalestate-property.php b/inc/property/class-opalestate-property.php index dbcae9ec..c154f14a 100755 --- a/inc/property/class-opalestate-property.php +++ b/inc/property/class-opalestate-property.php @@ -134,7 +134,7 @@ class Opalestate_Property { public function get_block_setting( $key ) { if ( ! $this->property_settings ) { - $keys = [ + $key_settings = [ 'amenities', 'attachments', 'facilities', @@ -151,12 +151,12 @@ class Opalestate_Property { 'mortgage', ]; - foreach ( $keys as $key ) { - $this->property_settings[ $key ] = opalestate_get_option( 'enable_single_' . $key, 'on' ); + foreach ( $key_settings as $key_setting ) { + $this->property_settings[ $key_setting ] = opalestate_get_option( 'enable_single_' . $key_setting, 'on' ); } } - return $this->property_settings[ $key ]; + return isset( $this->property_settings[ $key ] ) ? $this->property_settings[ $key ] : null; } /** diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 66cc23b8..93f329af 100755 --- a/opal-estate-pro.php +++ b/opal-estate-pro.php @@ -3,7 +3,7 @@ * Plugin Name: Opal Estate Pro * Plugin URI: https://wpdocs.gitbook.io/opal-estate/ * Description: Opal Real Estate Plugin is an ideal solution and brilliant choice for you to set up a professional estate website. - * Version: 1.3.1 + * Version: 1.3.2 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -150,7 +150,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { */ public function __clone() { // Cloning instances of the class is forbidden - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.3.1' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.3.2' ); } /** @@ -159,7 +159,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.3.1' ); + define( 'OPALESTATE_VERSION', '1.3.2' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 156b66eb..b5df570d 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wpdocs.gitbook.io/opal-estate/ Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace Requires at least: 4.9 Tested up to: 5.3.2 -Stable tag: 1.3.1 +Stable tag: 1.3.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -156,6 +156,9 @@ This section describes how to install the plugin and get it working. * System tickets support 24/7 available : [free support](https://wpopal.ticksy.com/ "Visit the Plugin support Page") == Changelog == += 1.3.2 - 2020-02-15 = +* Fixes - Hotfix single property settings. + = 1.3.1 - 2020-02-14 = * Added - Single Property Custom Sidebar.