Hotfix single property settings

This commit is contained in:
Hoang Huu 2020-02-15 10:13:54 +07:00
parent 7a4f3b67dc
commit 0c1b3b7ef1
4 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,6 @@
= 1.3.2 - 2020-02-15 =
* Fixes - Hotfix single property settings.
= 1.3.1 - 2020-02-14 = = 1.3.1 - 2020-02-14 =
* Added - Single Property Custom Sidebar. * Added - Single Property Custom Sidebar.

View File

@ -134,7 +134,7 @@ class Opalestate_Property {
public function get_block_setting( $key ) { public function get_block_setting( $key ) {
if ( ! $this->property_settings ) { if ( ! $this->property_settings ) {
$keys = [ $key_settings = [
'amenities', 'amenities',
'attachments', 'attachments',
'facilities', 'facilities',
@ -151,12 +151,12 @@ class Opalestate_Property {
'mortgage', 'mortgage',
]; ];
foreach ( $keys as $key ) { foreach ( $key_settings as $key_setting ) {
$this->property_settings[ $key ] = opalestate_get_option( 'enable_single_' . $key, 'on' ); $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;
} }
/** /**

View File

@ -3,7 +3,7 @@
* Plugin Name: Opal Estate Pro * Plugin Name: Opal Estate Pro
* Plugin URI: https://wpdocs.gitbook.io/opal-estate/ * 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. * 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: WPOPAL
* Author URI: http://www.wpopal.com * Author URI: http://www.wpopal.com
* Requires at least: 4.9 * Requires at least: 4.9
@ -150,7 +150,7 @@ if ( ! class_exists( 'OpalEstate' ) ) {
*/ */
public function __clone() { public function __clone() {
// Cloning instances of the class is forbidden // 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() { public function setup_constants() {
// Plugin version // Plugin version
if ( ! defined( 'OPALESTATE_VERSION' ) ) { if ( ! defined( 'OPALESTATE_VERSION' ) ) {
define( 'OPALESTATE_VERSION', '1.3.1' ); define( 'OPALESTATE_VERSION', '1.3.2' );
} }
// Plugin Folder Path // Plugin Folder Path

View File

@ -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 Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace
Requires at least: 4.9 Requires at least: 4.9
Tested up to: 5.3.2 Tested up to: 5.3.2
Stable tag: 1.3.1 Stable tag: 1.3.2
License: GPLv3 License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html 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") * System tickets support 24/7 available : [free support](https://wpopal.ticksy.com/ "Visit the Plugin support Page")
== Changelog == == Changelog ==
= 1.3.2 - 2020-02-15 =
* Fixes - Hotfix single property settings.
= 1.3.1 - 2020-02-14 = = 1.3.1 - 2020-02-14 =
* Added - Single Property Custom Sidebar. * Added - Single Property Custom Sidebar.