[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:20:07 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):

 Replying to [comment:29 hellofromTonya]:
 > Observation:
 >
 > The "Install" button can only be pressed once. Then it changes its state
 to Installing with a rotating indicator that tells the user -> it's
 installing.
 >
 > Why isn't the Activate button the same? Why doesn't it change state once
 it's pressed to prevent multiple presses while informing the user that
 it's "Activating"? cc @costdev

 [https://wordpress.slack.com/archives/CULBN711P/p1718053981553349 Chatted
 in Slack] -> the Install button is AJAXified, whereas the Activate is not.

 Copying @costdev comments here:

 >The `Install Now` button is AJAXified, the `Activate` button is just a
 link. With PD, when it was AJAXified, the `Activate` button changed to
 `Activating...` -> `Activated!` -> `Active`
 >
 >Since we removed the AJAX for the `Activate` button, it's just a link
 with no JS to change its state
 >
 >Nevertheless, changing the state using JS is still possible, and
 certainly an enhancement we could make in 6.7 for example. Relatively
 straightforward and for non-JS, it'll be what you see now, so it's
 graceful.

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


More information about the wp-trac mailing list