From c5d3c7672cf1a11f0e997c34c370d8fc7efd95ee Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 14 Apr 2025 21:26:27 +0100 Subject: [PATCH] Version 2.2.1 - Commented out version-fix.js script and fixed version consistency --- CHANGELOG.md | 5 +++ admin/js/version-fix.js | 2 +- includes/Admin.php | 5 ++- readme.txt | 6 +++- wp-fix-plugin-does-not-exist-notices.php | 4 +-- wp-fix-plugin-does-not-exist-notices.php.bak | 32 ++++++++++++++++++++ 6 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 wp-fix-plugin-does-not-exist-notices.php.bak diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cc0f0..803f1ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ All notable changes to this project should be documented both here and in the main Readme files. +#### [2.2.1] - 2025-04-14 +#### Changed +- Commented out version-fix.js script as it's no longer needed after refactoring +- Fixed version consistency across all files + #### [2.2.0] - 2025-04-14 #### Added - Completely refactored plugin to use OOP best practices diff --git a/admin/js/version-fix.js b/admin/js/version-fix.js index 98e7a7e..9ca56c6 100644 --- a/admin/js/version-fix.js +++ b/admin/js/version-fix.js @@ -8,7 +8,7 @@ 'use strict'; // Current plugin version - this should match the version in the main plugin file - const CURRENT_VERSION = '2.2.0'; + const CURRENT_VERSION = '2.2.1'; // Plugin slugs to check for const OUR_SLUGS = ['wp-fix-plugin-does-not-exist-notices', 'fix-plugin-does-not-exist-notices']; diff --git a/includes/Admin.php b/includes/Admin.php index 2a5ea56..6a7678e 100644 --- a/includes/Admin.php +++ b/includes/Admin.php @@ -45,7 +45,9 @@ class Admin { return; } - // Always load our version fix script on the plugins page + // Version fix script is no longer needed after refactoring + // Commented out for testing + /* wp_enqueue_script( 'fpden-version-fix', FPDEN_PLUGIN_URL . 'admin/js/version-fix.js', @@ -53,6 +55,7 @@ class Admin { FPDEN_VERSION, true // Load in footer ); + */ // Get invalid plugins to decide if other assets are needed $invalid_plugins = $this->core->get_invalid_plugins(); diff --git a/readme.txt b/readme.txt index 507524c..9747287 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: plugins, missing plugins, cleanup, error fix, admin tools, plugin file doe Requires at least: 5.0 Tested up to: 6.7.2 Requires PHP: 7.0 -Stable tag: 2.2.0 +Stable tag: 2.2.1 License: GPL-2.0+ License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -179,6 +179,10 @@ Manually editing the WordPress database is risky and requires technical knowledg == Changelog == += 2.2.1 = +* Changed: Commented out version-fix.js script as it's no longer needed after refactoring +* Fixed: Version consistency across all files + = 2.2.0 = * Added: Completely refactored plugin to use OOP best practices * Added: New class structure with proper namespaces diff --git a/wp-fix-plugin-does-not-exist-notices.php b/wp-fix-plugin-does-not-exist-notices.php index 100601b..c3839af 100644 --- a/wp-fix-plugin-does-not-exist-notices.php +++ b/wp-fix-plugin-does-not-exist-notices.php @@ -3,7 +3,7 @@ * Plugin Name: Fix 'Plugin file does not exist' Notices * Plugin URI: https://www.wpallstars.com * Description: Adds missing plugins to your plugins list with a "Remove Notice" action link, allowing you to safely clean up invalid plugin references. - * Version: 2.2.0 + * Version: 2.2.1 * Author: Marcus Quinn & The WPALLSTARS Team * Author URI: https://www.wpallstars.com * License: GPL-2.0+ @@ -35,4 +35,4 @@ if (!defined('WPINC')) { require_once plugin_dir_path(__FILE__) . 'includes/Plugin.php'; // Initialize the plugin -new WPALLSTARS\FixPluginDoesNotExistNotices\Plugin(__FILE__, '2.2.0'); +new WPALLSTARS\FixPluginDoesNotExistNotices\Plugin(__FILE__, '2.2.1'); diff --git a/wp-fix-plugin-does-not-exist-notices.php.bak b/wp-fix-plugin-does-not-exist-notices.php.bak new file mode 100644 index 0000000..24f76c6 --- /dev/null +++ b/wp-fix-plugin-does-not-exist-notices.php.bak @@ -0,0 +1,32 @@ +