From dd9163a00f92a64adb13c297381b94eec357e4d5 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Wed, 5 Feb 2020 09:53:19 +0700 Subject: [PATCH] Fix login with Editor role --- changelog.txt | 5 ++++- inc/admin/register-settings.php | 8 ++++++-- opal-estate-pro.php | 6 +++--- readme.txt | 9 ++++++--- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/changelog.txt b/changelog.txt index 368103a0..6bc22c6f 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ += 1.2.9.4 - 2020-02-05 = +* Fixes - Login with Edior role. + = 1.2.9.3 - 2020-01-31 = -* Fixes - Admin infomation fields. +* Fixes - Admin information fields. = 1.2.9.2 - 2020-01-30 = * Fixes - Archive filter. diff --git a/inc/admin/register-settings.php b/inc/admin/register-settings.php index 2ef35dc2..4caadaaa 100755 --- a/inc/admin/register-settings.php +++ b/inc/admin/register-settings.php @@ -82,7 +82,9 @@ class Opalestate_Plugin_Settings { 'opalestate-settings', [ $this, 'admin_page_display' ] ); - do_action( 'load-' . $opalestate_settings_page, $this ); + if ( $opalestate_settings_page ) { + do_action( 'load-' . $opalestate_settings_page, $this ); + } // Addons $opalestate_addons_page = add_submenu_page( @@ -93,7 +95,9 @@ class Opalestate_Plugin_Settings { 'opalestate-addons', [ $this, 'admin_addons_page_display' ] ); - do_action( 'load-' . $opalestate_addons_page, $this ); + if ( $opalestate_addons_page ) { + do_action( 'load-' . $opalestate_addons_page, $this ); + } } /** diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 1328a61a..9bb20a76 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.2.9.3 + * Version: 1.2.9.4 * 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.2.9.3' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.2.9.4' ); } /** @@ -159,7 +159,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.2.9.3' ); + define( 'OPALESTATE_VERSION', '1.2.9.4' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index d3a8e065..16459470 100755 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === Opal Estate Pro - Property Management and Submission === -Contributors: wpopal +Contributors: wpopal, ndoublehwp 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.2.9.3 +Stable tag: 1.2.9.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -156,8 +156,11 @@ 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.2.9.4 - 2020-02-05 = +* Fixes - Login with Edior role. + = 1.2.9.3 - 2020-01-31 = -* Fixes - Admin infomation fields. +* Fixes - Admin information fields. = 1.2.9.2 - 2020-01-30 = * Fixes - Archive filter.