[wp-trac] [WordPress Trac] #60992: Plugin management: AJAX plugin activation consequences

WordPress Trac noreply at wordpress.org
Tue Apr 16 15:00:59 UTC 2024


#60992: Plugin management: AJAX plugin activation consequences
--------------------------+------------------------------
 Reporter:  jeherve       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  6.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by costdev):

 > @flixos90
 > @afragen @costdev Can you share any context here you may have?
 Activating plugins via AJAX without reloading the page is breaking
 expected behavior, and I'm not sure whether this was considered when
 plugin dependencies were introduced.

 This was considered and the change in behaviour was noted in the
 [https://make.wordpress.org/core/2024/02/15/merge-announcement-plugin-
 dependencies/ Merge Announcement post] and in the
 [https://make.wordpress.org/core/2024/03/05/introducing-plugin-
 dependencies-in-wordpress-6-5/ Dev Note].

 > So far I tend to think the AJAX activation part needs to be reverted.

 Although a revert sounds like the right approach, a straight revert of
 AJAX additions isn't feasible due to the fact that modal-based activation
 requires AJAX activation (also note that modal-based activation is also
 available on `Plugins > Installed plugins` dependency links). Rather than
 revert, it may be a matter of being more restrictive in the selectors used
 so that only the `Activate Now` button in the modal triggers the AJAX
 activation.

 Another approach could be to refresh the page when the `Activate` button
 is clicked outside of the modal.

 Happy to discuss the above approaches or look at others so we can get a UX
 fix ready ASAP.

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


More information about the wp-trac mailing list