Fix plugin details popup to show correct version and author information

This commit is contained in:
2025-04-13 01:14:56 +01:00
parent ed24e48ab9
commit 18f8f66477

View File

@ -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' ),