From 0fa1e048ef8d0f7ec2fd8260fb10d55b1776dfb9 Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Sat, 12 Apr 2025 00:29:47 +0100 Subject: [PATCH] Prepare release v1.6.2 with improved localization and WordPress.org readiness --- CHANGELOG.md | 6 ++++++ assets/js/admin-scripts.js | 13 ++++++++++--- fix-plugin-does-not-exist-notices.php | 4 ++-- languages/fix-plugin-does-not-exist-notices.pot | 2 +- readme.txt | 10 +++++++++- 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dac0f0..b02442b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.6.2] - 2024-05-15 +### Changed +- Updated POT file version for consistency +- Improved JavaScript localization with proper fallbacks +- Enhanced code quality for WordPress.org submission + ## [1.6.1] - 2024-05-15 ### Added - AI assistant guide and workflow documentation diff --git a/assets/js/admin-scripts.js b/assets/js/admin-scripts.js index cd67c38..55b8e71 100644 --- a/assets/js/admin-scripts.js +++ b/assets/js/admin-scripts.js @@ -18,11 +18,18 @@ var ourNotice = document.createElement('div'); ourNotice.className = 'prc-notice'; - // Add content (using localized strings passed via wp_localize_script if needed, but simple for now) + // Add content using localized strings passed via wp_localize_script + var pluginMissingText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.pluginMissing ? + fpdenData.i18n.pluginMissing : 'Plugin file missing'; + var removeReferenceText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.removeReference ? + fpdenData.i18n.removeReference : 'Remove Reference'; + var clickToScrollText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.clickToScroll ? + fpdenData.i18n.clickToScroll : 'Click here to scroll to missing plugins'; + ourNotice.innerHTML = '
To remove the above error notification, scroll down to find the plugin marked with "(File Missing)" and click its "Remove Reference" link.
' + + 'To remove the above error notification, scroll down to find the plugin marked with "(' + pluginMissingText + ')" and click its "' + removeReferenceText + '" link.
' + 'This will permanently remove the missing plugin reference from your database.
' + - 'Click here to scroll to the missing plugin
'; + ''; // Insert our notice right after the error notice.parentNode.insertBefore(ourNotice, notice.nextSibling); diff --git a/fix-plugin-does-not-exist-notices.php b/fix-plugin-does-not-exist-notices.php index b90d36f..2b35c26 100644 --- a/fix-plugin-does-not-exist-notices.php +++ b/fix-plugin-does-not-exist-notices.php @@ -11,7 +11,7 @@ * Plugin Name: Fix 'Plugin file does not exist.' Notices * Plugin URI: https://wordpress.org/plugins/fix-plugin-does-not-exist-notices/ * Description: Adds missing plugins to the plugins list with a "Remove Reference" link so you can permanently clean up invalid plugin entries and remove error notices. - * Version: 1.6.1 + * Version: 1.6.2 * Author: Marcus Quinn * Author URI: https://www.wpallstars.com * License: GPL-2.0+ @@ -45,7 +45,7 @@ if ( ! defined( 'ABSPATH' ) ) { } // Define plugin constants -define( 'FPDEN_VERSION', '1.6.1' ); +define( 'FPDEN_VERSION', '1.6.2' ); define( 'FPDEN_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'FPDEN_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'FPDEN_PLUGIN_FILE', __FILE__ ); diff --git a/languages/fix-plugin-does-not-exist-notices.pot b/languages/fix-plugin-does-not-exist-notices.pot index 886d262..bdc1d40 100644 --- a/languages/fix-plugin-does-not-exist-notices.pot +++ b/languages/fix-plugin-does-not-exist-notices.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPL-2.0+. msgid "" msgstr "" -"Project-Id-Version: Fix 'Plugin file does not exist.' Notices 1.6.0\n" +"Project-Id-Version: Fix 'Plugin file does not exist.' Notices 1.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/fix-plugin-does-not-exist-notices\n" "Last-Translator: FULL NAME