[wp-trac] [WordPress Trac] #61319: Plugin Dependencies: Change AJAX activation handler to restore auto-redirect after plugin activation

WordPress Trac noreply at wordpress.org
Wed May 29 20:54:35 UTC 2024


#61319: Plugin Dependencies: Change AJAX activation handler to restore auto-
redirect after plugin activation
----------------------------------------+-----------------------------
 Reporter:  hellofromTonya              |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.5.4
Component:  Upgrade/Install             |     Version:  6.5
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch has-testing-info  |     Focuses:  administration
----------------------------------------+-----------------------------

Comment (by ironprogrammer):

 Thanks for the patch, @costdev, and thorough test scenarios,
 @hellofromTonya! 🎉 The tests above cover several plugins, but here's one
 more confidence check with WC.

 == Test Report
 Patch tested: https://github.com/WordPress/wordpress-develop/pull/6670

 Restores expected **Activate** button behavior (prior to 6.5) when
 activating a plugin with a setup workflow redirect.

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 14.5
 - Browser: Safari 17.5
 - Server: nginx/1.25.5
 - PHP: 8.2.19
 - MySQL: 8.0.27
 - WordPress: 6.6-alpha-57778-src
 - Theme: twentytwentyfour v1.1
 - Plugin used for testing: WooCommerce (WC)

 === Actual Results
 - ✅ Activation from Add Plugins page redirects to WC setup wizard.
 - ✅ Activation from Add Plugins > More Details modal redirects to WC
 setup wizard.
 **Regression Checks (no changes expected)**
 - ✅ Activation from Installed Plugins page (main list) redirects to WC
 setup wizard.
 - ✅ After activation via wp-cli, first wp-admin pageload redirects to WC
 setup wizard.

 === Additional Notes
 - Used `wp transient set _wc_activation_redirect 1` between tests to mimic
 a
 [https://github.com/woocommerce/woocommerce/blob/de91a0881d7df32573b107507f9f836897832612/plugins/woocommerce/includes
 /class-wc-install.php#L618 new WC install].
 - This patch mitigates the
 [https://core.trac.wordpress.org/ticket/60992#comment:88 previously raised
 concern] when the More Details modal was triggered prior to refresh, as
 the setup wizard redirect is now immediate.

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


More information about the wp-trac mailing list