[wp-trac] [WordPress Trac] #60521: Plugin updates from the plugin row don't work anymore
WordPress Trac
noreply at wordpress.org
Tue Feb 13 12:05:16 UTC 2024
#60521: Plugin updates from the plugin row don't work anymore
-------------------------------------------------+-------------------------
Reporter: Presskopp | Owner: costdev
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Plugins | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-patch has- | Focuses:
testing-info commit |
-------------------------------------------------+-------------------------
Changes (by costdev):
* owner: (none) => costdev
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57615" 57615]:
{{{
#!CommitTicketReference repository="" revision="57615"
Plugins: Only set card button status on plugin install pages.
Previously, the `setCardButtonStatus()` JS function was called when a card
had the ID 'plugin-information-footer'. However, the card will only exist
on plugin install pages. This caused a failure when updating plugins from
the plugin row on `plugins.php` due to an undefined `$card` variable.
This adds a guard to ensure that the current page is one of the plugin
install pages, preventing the error and allowing plugin updates from the
`plugins.php` rows to work as expected.
Follow-up to [57545].
Props Presskopp, huzaifaalmesbah, krupajnanda, hellofromTonya,
krupalpanchal, costdev.
Fixes #60521.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60521#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list