Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#666 closed defect (bug)

Wrong Plugin shown from view details in wp-admin/plugins.php

Reported by: anmari's profile anmari Owned by: ocean90's profile ocean90
Milestone: Priority: normal
Component: Plugin Directory Keywords:


I have what appears to be an older maintenance mode plugin (
Version 5.4 | By Michael Wöhrer) homepage: (many of these links back to are broken - perhaps the plugin is no longer hosted there.)

The "view details" link shows details from which is a much newer plugin by a different author.

See attached screenshot (very small text to try to get both the view details box and the plugin details behind to show.)

I don't see anything in the readme or plugin header that would cause this to happen. Maybe this is a url/tag/name funny that happens when the original plugin is no longer hosted ?

Attachments (1)

maintenancemode.png (104.6 KB) - added by anmari 10 years ago.
Screenshot showing view details shows wrong plugin details

Download all attachments as: .zip

Change History (7)

10 years ago

Screenshot showing view details shows wrong plugin details

#1 @Ipstenu
8 years ago

So! As it happens, there was a plugin called and WP is trying to match that. Since it was closed, it's trying for the next-best match.

I think that this is, in a way, related to - if we can flag plugins as unmanaged, they won't make those links either?

This ticket was mentioned in Slack in #meta by ocean90. View the logs.

8 years ago

#3 @ocean90
8 years ago

  • Owner set to ocean90
  • Status changed from new to reviewing
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api..

$api = plugins_api( 'plugin_information', array(
        'slug' => 'maintenance-mode',
) );

var_dump( $api  );


object(WP_Error)#346 (2) {
  array(1) {
    array(1) {
      string(219) "An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the support forums."
  array(1) {
    string(2) "N;"

#4 @dd32
8 years ago

  • Status changed from reviewing to closed

@ocean90 Yeah, because the plugin on with that slug has been closed (so it's now like it doesn't exist).

This occurs through the update-check API, whereby it selects the best matching plugin (based off the slug, name, url, and author), which the plugins screen then ultimately uses. Since the plugin in the description here has 'Maintenance Mode' as it's name, that ultimately serves up a response for rocket-maintenance-mode which is then picked up by the plugins screen and uses it's slug for the details.

Ultimately this is a duplicate of #wp14179 / #wp23318

#5 @Otto42
8 years ago

Note that this should be partially fixed by [dotorg:11268], as I changed it to use a slightly higher threshold, specifically to prevent slug-to-name-only matching.

This ticket was mentioned in Slack in #meta by ocean90. View the logs.

8 years ago

Note: See TracTickets for help on using tickets.