From 08a47c8b690577c9a6af74ba44712575a74fdaa9 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 17 Sep 2024 18:43:59 +0200 Subject: [PATCH] v 0.8.1 Update dependencies. --- inc/WPUBaseSettings/WPUBaseSettings.php | 15 +++++++++++++-- wpucontactforms_zohocrm.php | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/inc/WPUBaseSettings/WPUBaseSettings.php b/inc/WPUBaseSettings/WPUBaseSettings.php index 6f41ec1..129e454 100644 --- a/inc/WPUBaseSettings/WPUBaseSettings.php +++ b/inc/WPUBaseSettings/WPUBaseSettings.php @@ -4,7 +4,7 @@ /* Class Name: WPU Base Settings Description: A class to handle native settings in WordPress admin -Version: 0.21.0 +Version: 0.22.0 Class URI: https://github.com/WordPressUtilities/wpubaseplugin Author: Darklg Author URI: https://darklg.me/ @@ -486,6 +486,9 @@ public function admin_head() { public function admin_footer_medias() { echo << +(function(){ +{$this->admin_footer_js_check_correct_page()} + /* Delete image */ jQuery('.wpubasesettings-mediabox .x').click(function(e) { var \$this = jQuery(this), @@ -520,11 +523,17 @@ public function admin_footer_medias() { e.preventDefault(); }); - +}()); EOT; } + public function admin_footer_js_check_correct_page() { + return <<settings_details['option_id']; $languages = json_encode($this->get_languages()); @@ -532,6 +541,7 @@ public function admin_footer() { echo << (function(){ +{$this->admin_footer_js_check_correct_page()} /* Check langs */ var _langs = {$languages}; if(!_langs){ @@ -583,6 +593,7 @@ function admin_footer_checkall() { echo << jQuery(document).ready(function() { + {$this->admin_footer_js_check_correct_page()} jQuery(".wpubasesettings-check-all").each(function() { var _btn = jQuery(this), _table = _btn.prev(".form-table"), diff --git a/wpucontactforms_zohocrm.php b/wpucontactforms_zohocrm.php index f142c34..4f84268 100644 --- a/wpucontactforms_zohocrm.php +++ b/wpucontactforms_zohocrm.php @@ -5,7 +5,7 @@ Plugin URI: https://github.com/WordPressUtilities/wpucontactforms_zohocrm Update URI: https://github.com/WordPressUtilities/wpucontactforms_zohocrm Description: Connect WPU Contact Forms to ZohoCRM -Version: 0.8.0 +Version: 0.8.1 Author: darklg Author URI: https://darklg.me/ Text Domain: wpucontactforms_zohocrm @@ -27,7 +27,7 @@ class WPUContactFormsZohoCRM { public $basecron; public $settings_update; private $user_level = 'manage_options'; - private $plugin_version = '0.8.0'; + private $plugin_version = '0.8.1'; private $plugin_settings = array( 'id' => 'wpucontactforms_zohocrm', 'name' => 'WPU Contact Forms - ZohoCRM'