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

WordPress Trac noreply at wordpress.org
Mon Apr 15 22:41:09 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 stevejonesdev):

 I also noticed an issue with the "Activate/Install Now" button not
 updating until the page refreshes. After the plugin is activated and the
 button text changes to Active, it stays an active link and doesn't change
 the HTML markup to the disable button element. You can actually click the
 "Active" button link again even though it visually appears disabled and it
 will redirect to the main plugins page.

 Active state markup:

 {{{
 <a class="button button-disabled" data-slug="duplicate-post"
 href="http://activation.local/wp-
 admin/plugins.php?_wpnonce=89f0a7c70e&action=activate&plugin
 =duplicate-post/duplicate-post.php" aria-label="Yoast Duplicate Post 4.5
 activated successfully." data-name="Yoast Duplicate Post" data-plugin
 ="duplicate-post/duplicate-post.php">Active</a>
 }}}

 After manually refreshing the page:
 {{{
 <button type="button" class="button button-disabled"
 disabled="disabled">Active</button>
 }}}

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


More information about the wp-trac mailing list