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

WordPress Trac noreply at wordpress.org
Thu May 30 00:53:09 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 needs-    |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------

Comment (by azaozz):

 > may be good to get their feedback on the new approach

 Been thinking about/looking at this for some time now. It is quite
 unfortunate that testing in the feature plugin and later in 6.5 beta and
 RC did not reveal this problem.

 There have been several good ideas and approaches on how to fix it. Imho
 best is to "reverse" the fix from #60992, i.e. after a plugin has been
 installed and activated show a (one time) reminder message that one or
 more "dependent" plugins can now be activated. It may not be strictly
 necessary but thinking it is a "nice to have" enhancement to remind the
 users to continue especially if they had to install the dependency plugin
 after attempting to install/activate a dependent plugin.

 This will remedy all shortcoming of an AJAX activation (like not showing
 menu items added by the just activated plugin right away, etc.), and also
 will restore redirects after activation.

 I'm a +1 for the patch here. It is the first part of the above. The second
 part (one-time reminder to activate dependent plugins) can be added in WP
 6.6.

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


More information about the wp-trac mailing list