Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#37351 closed defect (bug) (duplicate)

Already installed plugin shows with "Install Now" button on plugin-install.php page

Reported by: mapk Owned by:
Priority: normal Milestone:
Component: Plugins Version: 3.0
Severity: normal Keywords:
Cc: Focuses: ui

Description

I have the plugin Hello Dolly already installed, just not activated. When I search for that plugin in the "Add New Plugin" plugin-install.php page, it shows up with a button to "Install Now". Shouldn't it detect my installation and show "Installed" or "Activate" instead?

Already installed plugin
https://cldup.com/QmXjlv7XxG.png

But shows as needing to be installed on plugin-install.php
https://cldup.com/_yumIShg6w.png

Change History (5)

#1 @swissspidy
10 years ago

  • Summary Shiny Updates: Already intalled plugin shows with "Install Now" button on plugin-install.php page → Already intalled plugin shows with "Install Now" button on plugin-install.php page
  • Version trunk → 3.0

I assume the already installed plugin is wp-content/plugins/hello.php, which gets shipped with every WordPress site by default.

On the plugin-install.php screen, Hello Dolly is displayed as not being installed because install_plugin_install_status() checks if the wp-content/plugins/hello-dolly/ directory exists. Obviously it doesn't, because it's just a PHP file. Therefore you're able to install the plugin from WordPress.org.

Technically those are separate plugins that happen to have the same name. It's like having a GitHub checkout from WooCommerce inside wp-content/plugins/woocommerce-master. You can still download it from WordPress.org

#2 @swissspidy
10 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #29540.

#3 @DrewAPicture
10 years ago

  • Summary Already intalled plugin shows with "Install Now" button on plugin-install.php page → Already installed plugin shows with "Install Now" button on plugin-install.php page

#4 @ocean90
7 years ago

#49338 was marked as a duplicate.

#5 @SergeyBiryukov
7 years ago

#49590 was marked as a duplicate.

Note: See TracTickets for help on using tickets.