From ab00de67162abd3e7d83037d6072ee42bc569391 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Mon, 22 Jun 2020 13:30:12 +0700 Subject: [PATCH] Fixes --- changelog.txt | 4 ++++ inc/mixes-functions.php | 2 ++ inc/user/class-opalestate-user.php | 4 ++++ opal-estate-pro.php | 6 +++--- readme.txt | 6 +++++- 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 26e18279..65c9c559 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ += 1.5.9 - 2020-06-22 = +* Added - Currency +* Fixes - Subscriber admin bar + = 1.5.8 - 2020-06-18 = * Added - Single Preview Layout setting * Added - Range setting for Radius search diff --git a/inc/mixes-functions.php b/inc/mixes-functions.php index 34ac4c62..9878783f 100755 --- a/inc/mixes-functions.php +++ b/inc/mixes-functions.php @@ -660,6 +660,7 @@ function opalestate_get_currencies() { 'CHF' => esc_html__( 'Swiss franc', 'opalestate-pro' ), 'CLP' => esc_html__( 'Chilean peso', 'opalestate-pro' ), 'CNY' => esc_html__( 'Chinese yuan', 'opalestate-pro' ), + 'UF' => esc_html__( 'Chilean Foment Unity', 'opalestate-pro' ), 'COP' => esc_html__( 'Colombian peso', 'opalestate-pro' ), 'CRC' => esc_html__( 'Costa Rican colón', 'opalestate-pro' ), 'CUC' => esc_html__( 'Cuban convertible peso', 'opalestate-pro' ), @@ -884,6 +885,7 @@ function opalestate_currency_symbol( $currency = '' ) { 'CHF' => 'CHF', 'CLP' => '$', 'CNY' => '¥', + 'UF' => 'UF', 'COP' => '$', 'CRC' => '₡', 'CUC' => '$', diff --git a/inc/user/class-opalestate-user.php b/inc/user/class-opalestate-user.php index 9da41f25..8146702b 100755 --- a/inc/user/class-opalestate-user.php +++ b/inc/user/class-opalestate-user.php @@ -177,6 +177,10 @@ class OpalEstate_User { if ( in_array( 'opalestate_agent', $roles ) || in_array( 'opalestate_agency', $roles ) ) { return false; } + + if ( in_array( 'subscriber', $roles ) && opalestate_is_user_management_page() ) { + return false; + } } return $show_admin_bar; diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 501c31bc..8969772c 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.5.8 + * Version: 1.5.9 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -154,7 +154,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.5.8' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.5.9' ); } /** @@ -163,7 +163,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.5.8' ); + define( 'OPALESTATE_VERSION', '1.5.9' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 16d7632b..429863f2 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.5.8 +Stable tag: 1.5.9 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -150,6 +150,10 @@ This section describes how to install the plugin and get it working. * System tickets support 24/7 available : [free support](https://themelexus.ticksy.com/ "Visit the Plugin support Page") == Changelog == += 1.5.9 - 2020-06-22 = +* Added - Currency +* Fixes - Subscriber admin bar + = 1.5.8 - 2020-06-18 = * Added - Single Preview Layout setting * Added - Range setting for Radius search