diff --git a/CHANGELOG.md b/CHANGELOG.md index 2028fa4..46f3e0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## [1.3.3] - 2023-10-05 +### Added +- "Click here to scroll" button to automatically find missing plugins +- Visual arrow pointing from notification to error message +- Smooth scrolling with highlighting of missing plugin rows + +### Improved +- Notification reliability using multiple injection methods +- Earlier placement in page load cycle for better visibility +- Enhanced error detection for all WordPress error message formats + ## [1.3.2] - 2023-10-05 ### Added - Prominent notification that appears directly below WordPress error messages diff --git a/README.md b/README.md index 2f94bd9..76f3206 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Plugin Reference Cleaner Author: Marcus Quinn Author URI: https://www.wpallstars.com -Version: 1.3.2 +Version: 1.3.3 License: GPL-2.0+ ## Description @@ -47,6 +47,12 @@ If you don't have this notification perpetually showing on your /wp-admin/plugin ## Changelog +### 1.3.3 +* Improved notification placement next to WordPress error messages +* Added "Click here to scroll" button that automatically locates missing plugins +* Enhanced reliability with multiple injection methods +* Added visual arrow pointing from notification to error message + ### 1.3.2 * Added prominent notification directly below WordPress error messages * Improved user guidance with visual cues to connect error and solution diff --git a/plugin-reference-cleaner.php b/plugin-reference-cleaner.php index ac40ae3..a8102bb 100644 --- a/plugin-reference-cleaner.php +++ b/plugin-reference-cleaner.php @@ -2,7 +2,7 @@ /* * Plugin Name: Plugin Reference Cleaner * Description: Adds a "Remove Reference" button to plugin deactivation error notices, allowing users to clean up invalid plugin entries. - * Version: 1.3.2 + * Version: 1.3.3 * Author: Marcus Quinn * Author URI: https://www.wpallstars.com * License: GPL-2.0+ @@ -156,34 +156,106 @@ class Plugin_Reference_Cleaner { // Create a highlighted notice immediately after WordPress error messages if (!empty($invalid_plugins)) { // Add a notice specifically targeting the WordPress error notification - add_action('admin_print_footer_scripts', function() use ($invalid_plugins) { + // Use admin_head to ensure it runs early in the page load process + add_action('admin_head', function() use ($invalid_plugins) { ?> +