From 18f8f6647767d332c23c1da77182a338a0ea9546 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 13 Apr 2025 01:14:56 +0100 Subject: [PATCH] Fix plugin details popup to show correct version and author information --- wp-fix-plugin-does-not-exist-notices.php | 29 ++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/wp-fix-plugin-does-not-exist-notices.php b/wp-fix-plugin-does-not-exist-notices.php index 6127593..6d94e12 100644 --- a/wp-fix-plugin-does-not-exist-notices.php +++ b/wp-fix-plugin-does-not-exist-notices.php @@ -441,15 +441,36 @@ class Fix_Plugin_Does_Not_Exist_Notices { // Set the version to our plugin version $result->version = FPDEN_VERSION; + // Add our plugin's author information + $result->author = 'Marcus Quinn & WP ALLSTARS'; + $result->author_profile = 'https://www.wpallstars.com'; + + // Add contributors information + $result->contributors = array( + 'marcusquinn' => array( + 'profile' => 'https://profiles.wordpress.org/marcusquinn/', + 'avatar' => 'https://secure.gravatar.com/avatar/', + 'display_name' => 'Marcus Quinn' + ), + 'wpallstars' => array( + 'profile' => 'https://profiles.wordpress.org/wpallstars/', + 'avatar' => 'https://secure.gravatar.com/avatar/', + 'display_name' => 'WP ALLSTARS' + ) + ); + + // Add last updated information (current date) + $result->last_updated = date('Y-m-d'); + + // Add requires information + $result->requires = '5.0'; + $result->requires_php = '7.0'; + // Add other details if they're not already set if ( ! isset( $result->name ) ) { $result->name = basename( $plugin_file ); } - if ( ! isset( $result->author ) ) { - $result->author = ''; - } - if ( ! isset( $result->description ) ) { $result->description = sprintf( __( 'This plugin is still marked as "Active" in your database — but its folder and files can\'t be found in %s. Use the "Remove Notice" link on the plugins page to permanently remove it from your active plugins list and eliminate the error notice.', 'wp-fix-plugin-does-not-exist-notices' ),