diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fcb281..2028fa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.3.2] - 2023-10-05 +### Added +- Prominent notification that appears directly below WordPress error messages +- Visual styling to help users connect error message with solution +- Direction arrows and highlighted text to improve user guidance + ## [1.3.1] - 2023-10-05 ### Added - Instructional notification explaining how to use the plugin diff --git a/README.md b/README.md index 4ea8d20..2f94bd9 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.1 +Version: 1.3.2 License: GPL-2.0+ ## Description @@ -47,6 +47,11 @@ If you don't have this notification perpetually showing on your /wp-admin/plugin ## Changelog +### 1.3.2 +* Added prominent notification directly below WordPress error messages +* Improved user guidance with visual cues to connect error and solution +* Added eye-catching styling to help users understand how to fix errors + ### 1.3.1 * Added instructional notification explaining how to use the plugin * Improved user guidance with step-by-step instructions diff --git a/plugin-reference-cleaner.php b/plugin-reference-cleaner.php index 7f58730..ac40ae3 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.1 + * Version: 1.3.2 * Author: Marcus Quinn * Author URI: https://www.wpallstars.com * License: GPL-2.0+ @@ -153,8 +153,42 @@ class Plugin_Reference_Cleaner { // Get invalid plugins $invalid_plugins = $this->get_invalid_plugins(); - // Display instructional notice if there are invalid plugins + // 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) { + ?> + + '; echo '

Plugin Reference Cleaner

'; echo '

Missing plugin files detected: The plugins listed below with (File Missing) tag no longer exist but are still referenced in your database.

'; diff --git a/readme.txt b/readme.txt index e18c262..19d86b0 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Plugin Reference Cleaner === Author: Marcus Quinn Author URI: https://www.wpallstars.com -Version: 1.3.1 +Version: 1.3.2 License: GPL-2.0+ == Description == @@ -47,6 +47,11 @@ If you don't have this notification perpetually showing on your /wp-admin/plugin == Changelog == += 1.3.2 = +* Added prominent notification directly below WordPress error messages +* Improved user guidance with visual cues to connect error and solution +* Added eye-catching styling to help users understand how to fix errors + = 1.3.1 = * Added instructional notification explaining how to use the plugin * Improved user guidance with step-by-step instructions