From 5759a4c78a81057bd3dca5eeb89d4d7df39007f4 Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 17 Sep 2024 18:45:09 +0200 Subject: [PATCH] v 0.25.1 - Update dependencies --- inc/WPUBaseSettings/WPUBaseSettings.php | 15 +++++++++++++-- wpuactionlogs.php | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/inc/WPUBaseSettings/WPUBaseSettings.php b/inc/WPUBaseSettings/WPUBaseSettings.php index e8845dc..b041634 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/wpuactionlogs.php b/wpuactionlogs.php index dce68b0..cf50cec 100644 --- a/wpuactionlogs.php +++ b/wpuactionlogs.php @@ -5,7 +5,7 @@ Plugin URI: https://github.com/WordPressUtilities/wpuactionlogs Update URI: https://github.com/WordPressUtilities/wpuactionlogs Description: Useful logs about what’s happening on your website admin. -Version: 0.25.0 +Version: 0.25.1 Author: Darklg Author URI: https://darklg.me/ Text Domain: wpuactionlogs @@ -26,7 +26,7 @@ class WPUActionLogs { public $baseadmindatas; public $settings_details; public $settings; - private $plugin_version = '0.25.0'; + private $plugin_version = '0.25.1'; private $transient_active_duration = 60; private $plugin_settings = array( 'id' => 'wpuactionlogs',