From 1f65fe26aeb1ec8e8893264a397a57d36396c79b Mon Sep 17 00:00:00 2001 From: PriyoMukul Date: Mon, 18 Feb 2019 16:39:54 +0600 Subject: [PATCH 1/3] Revert "update to v2.9.6" This reverts commit 720c91edde3095d3cc72e1d9ab6328c0c50b07be. --- essential_adons_elementor.php | 6 +++--- readme.txt | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/essential_adons_elementor.php b/essential_adons_elementor.php index 4a7839bac..6400579e0 100755 --- a/essential_adons_elementor.php +++ b/essential_adons_elementor.php @@ -4,7 +4,7 @@ * Description: The ultimate elements library for Elementor page builder plugin for WordPress. * Plugin URI: https://essential-addons.com/elementor/ * Author: WPDeveloper - * Version: 2.9.6 + * Version: 2.9.5 * Author URI: https://wpdeveloper.net/ * * Text Domain: essential-addons-elementor @@ -16,8 +16,8 @@ define( 'ESSENTIAL_ADDONS_EL_URL', plugins_url( '/', __FILE__ ) ); define( 'ESSENTIAL_ADDONS_EL_PATH', plugin_dir_path( __FILE__ ) ); define( 'ESSENTIAL_ADDONS_EL_ROOT', __FILE__ ); -define( 'ESSENTIAL_ADDONS_VERSION', '2.9.6' ); -define( 'ESSENTIAL_ADDONS_STABLE_VERSION', '2.9.6' ); +define( 'ESSENTIAL_ADDONS_VERSION', '2.9.5' ); +define( 'ESSENTIAL_ADDONS_STABLE_VERSION', '2.9.5' ); define( 'ESSENTIAL_ADDONS_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/readme.txt b/readme.txt index 2184c8f17..4282aa4b2 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, page build Requires at least: 4.0 Tested up to: 5.0.3 Requires PHP: 5.4 -Stable tag: 2.9.6 +Stable tag: 2.9.5 License: GPLv3 License URI: https://opensource.org/licenses/GPL-3.0 @@ -169,11 +169,6 @@ Your existing elements/content will work with premium version. So you won't lose == Changelog == -= 2.9.6 = - -- Admin side performance improved -- Few minor bugfix and improvements - = 2.9.5 = - Fixed: Product grid featured products loop not working From 2cbc2b87513d43b64ffa484e7c10d5b8cbbd9463 Mon Sep 17 00:00:00 2001 From: PriyoMukul Date: Mon, 18 Feb 2019 16:40:52 +0600 Subject: [PATCH 2/3] Revert "Revert "update to v2.9.6"" This reverts commit 1f65fe26aeb1ec8e8893264a397a57d36396c79b. --- essential_adons_elementor.php | 6 +++--- readme.txt | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/essential_adons_elementor.php b/essential_adons_elementor.php index 6400579e0..4a7839bac 100755 --- a/essential_adons_elementor.php +++ b/essential_adons_elementor.php @@ -4,7 +4,7 @@ * Description: The ultimate elements library for Elementor page builder plugin for WordPress. * Plugin URI: https://essential-addons.com/elementor/ * Author: WPDeveloper - * Version: 2.9.5 + * Version: 2.9.6 * Author URI: https://wpdeveloper.net/ * * Text Domain: essential-addons-elementor @@ -16,8 +16,8 @@ define( 'ESSENTIAL_ADDONS_EL_URL', plugins_url( '/', __FILE__ ) ); define( 'ESSENTIAL_ADDONS_EL_PATH', plugin_dir_path( __FILE__ ) ); define( 'ESSENTIAL_ADDONS_EL_ROOT', __FILE__ ); -define( 'ESSENTIAL_ADDONS_VERSION', '2.9.5' ); -define( 'ESSENTIAL_ADDONS_STABLE_VERSION', '2.9.5' ); +define( 'ESSENTIAL_ADDONS_VERSION', '2.9.6' ); +define( 'ESSENTIAL_ADDONS_STABLE_VERSION', '2.9.6' ); define( 'ESSENTIAL_ADDONS_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/readme.txt b/readme.txt index 4282aa4b2..2184c8f17 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, page build Requires at least: 4.0 Tested up to: 5.0.3 Requires PHP: 5.4 -Stable tag: 2.9.5 +Stable tag: 2.9.6 License: GPLv3 License URI: https://opensource.org/licenses/GPL-3.0 @@ -169,6 +169,11 @@ Your existing elements/content will work with premium version. So you won't lose == Changelog == += 2.9.6 = + +- Admin side performance improved +- Few minor bugfix and improvements + = 2.9.5 = - Fixed: Product grid featured products loop not working From 4292164a308693b176899e436a6c3b64fc19fa81 Mon Sep 17 00:00:00 2001 From: PriyoMukul Date: Mon, 18 Feb 2019 17:52:03 +0600 Subject: [PATCH 3/3] Core Installer ( Possible issue, fix ) --- includes/class-wpdev-core-install.php | 20 +++++++++++--------- includes/class-wpdev-notices.php | 10 ++++++---- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/includes/class-wpdev-core-install.php b/includes/class-wpdev-core-install.php index c14867abb..692974fae 100755 --- a/includes/class-wpdev-core-install.php +++ b/includes/class-wpdev-core-install.php @@ -4,12 +4,19 @@ * WPDeveloper Core Install */ class WPDeveloper_Core_Installer { + /** + * Plugin Base Name + * + * @var string + */ + private $plugin_basename; /** * Instantiate the class * * @param string $affiliate */ - function __construct() { + function __construct( $plugin_basename = '' ) { + $this->plugin_basename = $plugin_basename; add_action( 'init', array( $this, 'init_hooks' ) ); } /** @@ -21,7 +28,7 @@ public function init_hooks() { if ( ! current_user_can( 'manage_options' ) ) { return; } - add_action( 'wp_ajax_wpdeveloper_upsale_core_install', array( $this, 'core_install' ) ); + add_action( 'wp_ajax_wpdeveloper_upsale_core_install_' . $this->plugin_basename, array( $this, 'core_install' ) ); } /** * Fail if plugin installtion/activation fails @@ -42,7 +49,7 @@ public function fail_on_error( $thing ) { * @return void */ public function core_install() { - check_ajax_referer( 'wpdeveloper_upsale_core_install' ); + check_ajax_referer( 'wpdeveloper_upsale_core_install_' . $this->plugin_basename ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( __( 'You don\'t have permission to install the plugins' ) ); @@ -92,9 +99,4 @@ public function install_plugin( $slug, $file ) { return activate_plugin( $plugin_basename ); } } - /** - * Initiate The Core Installer - */ - new WPDeveloper_Core_Installer(); -endif; - +endif; \ No newline at end of file diff --git a/includes/class-wpdev-notices.php b/includes/class-wpdev-notices.php index 0a0701050..540f16189 100755 --- a/includes/class-wpdev-notices.php +++ b/includes/class-wpdev-notices.php @@ -100,6 +100,8 @@ public function __construct( $plugin_file = '', $version = '' ) { if( ! class_exists( 'WPDeveloper_Core_Installer' ) ) { require_once dirname( __FILE__ ) . '/class-wpdev-core-install.php'; + + new WPDeveloper_Core_Installer( $this->plugin_name ); } } /** @@ -363,7 +365,7 @@ private function upsale_button(){ if( empty( $plugin_slug ) ) { return; } - echo ''; + echo ''; } /** * This methods is responsible for get notice image. @@ -723,7 +725,7 @@ public function upsale_button_script(){