[wp-trac] [WordPress Trac] #61294: Plugin Dependencies: Ensure dependency detection for newly installed plugins

WordPress Trac noreply at wordpress.org
Tue May 28 15:24:42 UTC 2024


#61294: Plugin Dependencies: Ensure dependency detection for newly installed
plugins
----------------------------------------+---------------------
 Reporter:  costdev                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.5.4
Component:  Plugins                     |     Version:  6.5
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch has-testing-info  |     Focuses:
----------------------------------------+---------------------
Changes (by hellofromTonya):

 * keywords:  has-patch needs-testing has-testing-info => has-patch has-
     testing-info


Comment:

 == Test Report

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/6630

 === Steps to Reproduce or Test

 Starting state: WooCommerce is installed, but not activated.
 I tested this as part of my #61269 testing.

 1. Click `Install Now` on any of the plugins requiring WooCommerce as
 their dependency.
 2. 🐞 Once installed, it'll have a clickable `Activate` button, and when
 clicked, will fail.
 3. 🐞 Opening DevTools > Network, the final `admin-ajax.php` entry will
 show a response including "This has no required plugins", which is
 obviously incorrect.

 === Expected Results
 When testing a patch to validate it works as expected:
 - ✅ The "Activate" button should be disabled.

 When reproducing a bug:
 - ❌ 🐞 Once installed, it'll have a clickable `Activate` button, and when
 clicked, will fail.
 - ❌ 🐞 Opening DevTools > Network, the final `admin-ajax.php` entry will
 show a response including "This has no required plugins", which is
 obviously incorrect.

 === Environment
 OS: macOS
 Browser: Firefox 126.0
 Web server: nginx
 PHP: 8.3
 Installed Plugins: WooCommerce 8.9.1
 Activated Plugins: none
 Theme: TT4

 ==== Actual Results

 When reproducing a bug/defect:
 - ❌ 🐞 After installing any of the WooCommerce add-ons that require
 WooCommerce to be activated first, the `Activate` button is available and,
 after clicking, fails with a "Activation failed." error.

 When testing the bugfix patch:
 - ✅ Issue resolved with patch.

 I'm able to reproduce the reported issue. Confirmed the patch resolves it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61294#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list