[wp-trac] [WordPress Trac] #61269: Plugin Dependencies: Add filter to restore auto-redirect after plugin activation

WordPress Trac noreply at wordpress.org
Thu May 23 18:34:09 UTC 2024


#61269: Plugin Dependencies: Add filter to restore auto-redirect after plugin
activation
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.5.4
Component:  Upgrade/Install                      |     Version:  6.5
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing needs-dev-note has-    |     Focuses:
  patch has-testing-info                         |  administration
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 == Test Report for Contact Form 7

 Patch tested https://github.com/WordPress/wordpress-develop/pull/6606 as
 of [https://github.com/WordPress/wordpress-
 develop/pull/6606/commits/dc013d3e1abbf3a826c02794d7e0c6b006d268ab this
 commit]

 Contact Form 7 from plugins repo https://wordpress.org/plugins/contact-
 form-7/.

 How it behaved prior to WP 6.5:
 After activation:
 * redirected back to the Plugins table list
 * added a "Contact" menu into the admin's main menu sidebar.

 === Environment

 - OS: macOS
 - Web Server: nginx
 - PHP: 8.3
 - WordPress: 6.5.3 with this PR applied
 - Browser: Firefox 126.0
 - Theme: default
 - Plugins: Contact Form 7 v 5.9.5 with the sample code added:

 {{{#!php
 add_filter( 'plugin_configuration_data_contact-form-7', static function()
 {
         return array(
                 'url' => admin_url( 'plugins.php' ),
         );
 } );
 }}}

 === Actual Results for Test in the Add Plugins UI:

 After activation:
 * ✅ the "Refresh now" admin notice and button do not appear.
 * ✅ auto-redirects to the Plugins table list.
 * ✅ the "Contact" menu is added into the main sidebar.

 === Actual Results for Test in the More Details modal:

 After activation:
 * ✅ at the bottom of the modal, the "Refresh now" admin notice and button
 do not appear.
 * ✅ auto-redirects to the Plugins table list.
 * ✅ the "Contact" menu is added into the main sidebar.

 === Actual Results for Test another plugin that requires Contact Form 7

 Plugin: Contact Form 7 – Dynamic Text Extension
 https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/

 After activation of Contact Form 7:
 ✅ at the bottom of the modal, the "Refresh now" admin notice and button
 do not appear.
 * ✅ auto-redirects to the Plugins table list.
 * ✅ the "Contact" menu is added into the main sidebar.

 After navigating back to the Add Plugins UI:
 ✅ able to activate plugins requiring Contact Form 7 – Dynamic Text
 Extension plugin.

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


More information about the wp-trac mailing list