[wp-trac] [WordPress Trac] #61330: Plugin Dependencies: Refresh plugin-install.php instead of redirecting on activation

WordPress Trac noreply at wordpress.org
Mon Jun 10 21:28:58 UTC 2024


#61330: Plugin Dependencies: Refresh plugin-install.php instead of redirecting on
activation
-------------------------------------------------+-------------------------
 Reporter:  jorbin                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.6
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info 2nd-opinion                       |  administration
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 == Test Report - Do plugins redirect back to the Add Plugins with search
 results?

 When the user searches for a plugin to install and activate, after its
 activation and if the plugin does not have its own redirect, does Core
 reload (i.e. redirect the user back to) the Add Plugins with the search
 results being displayed?

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

 === Steps to Test
 1. Go to Plugins > Add Plugins UI, i.e. `wp-admin/plugin-install.php`.
 2. In the search field, type `core rollback`.
 3. In its card, install and activate it.
 4. After activation, what page is loaded?

 === Expected Results
 - ✅ Should return to Add Plugins UI with the search results showing:
 {{{
 wp-admin/plugin-install.php?s=core%2520rollback&tab=search&type=term
 }}}

 === Environment
 * OS: macOS
 * Web Server: nginx
 * PHP: 7.4
 * WordPress: 6.6 trunk with the patch applied
 * Browser: Firefox 126.0
 * Theme: default
 * Plugins: Core Rollback

 ==== Actual Results

 ✅ Yes, it activates.

 ❌ doesn't reload the same page after activation.

 Instead, the URL is `wp-admin/plugin-install.php?s=core+rollback` which is
 the Add Plugins UI with the search field populated with `core rollback`.
 Pressing enter repopulates the search results.

 Shared these findings in [https://github.com/WordPress/wordpress-
 develop/pull/6732/files#r1633834794 the patch here] for discussion of what
 might need to change in the code.

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


More information about the wp-trac mailing list