From ed8fe84a4f6d61e6eac030abbbefde3478425fc3 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 13 Apr 2025 01:23:54 +0100 Subject: [PATCH] Bump version to 2.0.8 and fix plugin details popup with cache-busting --- CHANGELOG.md | 9 +++++++++ readme.txt | 7 ++++++- wp-fix-plugin-does-not-exist-notices.php | 19 +++++++++++++------ 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c0bff2..1de52a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. +## [2.0.8] - 2024-05-17 +### Fixed +- Plugin details popup now correctly shows version and author information +- Added cache-busting mechanism to ensure plugin details are always up-to-date + +### Improved +- Author and contributor information display in plugin details +- Added WordPress 6.5 compatibility indicator + ## [2.0.7] - 2024-05-17 ### Changed - Additional text improvements and minor fixes diff --git a/readme.txt b/readme.txt index d2bde57..839d12e 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.0.7 +Stable tag: 2.0.8 License: GPL-2.0+ License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -140,6 +140,11 @@ Manually editing the WordPress database is risky and requires technical knowledg == Changelog == += 2.0.8 = +* Fixed: Plugin details popup now correctly shows version and author information +* Added: Cache-busting mechanism to ensure plugin details are always up-to-date +* Improved: Author and contributor information display in plugin details + = 2.0.7 = * Additional text improvements and minor fixes diff --git a/wp-fix-plugin-does-not-exist-notices.php b/wp-fix-plugin-does-not-exist-notices.php index 6d94e12..2459d15 100644 --- a/wp-fix-plugin-does-not-exist-notices.php +++ b/wp-fix-plugin-does-not-exist-notices.php @@ -14,7 +14,7 @@ * Plugin Name: Fix 'Plugin file does not exist.' Notices * Plugin URI: https://wordpress.org/plugins/wp-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: 2.0.7 + * Version: 2.0.8 * Author: Marcus Quinn & WP ALLSTARS * Author URI: https://www.wpallstars.com * License: GPL-2.0+ @@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) { } // Define plugin constants -define( 'FPDEN_VERSION', '2.0.7' ); +define( 'FPDEN_VERSION', '2.0.8' ); define( 'FPDEN_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'FPDEN_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'FPDEN_PLUGIN_FILE', __FILE__ ); @@ -438,11 +438,17 @@ class Fix_Plugin_Does_Not_Exist_Notices { $result = new stdClass(); } - // Set the version to our plugin version - $result->version = FPDEN_VERSION; + // Generate a cache-busting timestamp + $cache_buster = time(); + + // Set the version to our plugin version with cache buster + $result->version = FPDEN_VERSION . ' (CB:' . $cache_buster . ')'; + + // Strip the cache buster for display purposes + $result->display_version = FPDEN_VERSION; // Add our plugin's author information - $result->author = 'Marcus Quinn & WP ALLSTARS'; + $result->author = 'Marcus Quinn & WP ALLSTARS'; $result->author_profile = 'https://www.wpallstars.com'; // Add contributors information @@ -460,11 +466,12 @@ class Fix_Plugin_Does_Not_Exist_Notices { ); // Add last updated information (current date) - $result->last_updated = date('Y-m-d'); + $result->last_updated = date('Y-m-d H:i:s'); // Add requires information $result->requires = '5.0'; $result->requires_php = '7.0'; + $result->tested = '6.5'; // Add other details if they're not already set if ( ! isset( $result->name ) ) {