WordPress/wp-admin/js
costdev f209cd1410 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.
Built from https://develop.svn.wordpress.org/trunk@57615


git-svn-id: http://core.svn.wordpress.org/trunk@57116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-13 12:06:10 +00:00
..
widgets Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00
accordion.js
accordion.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
application-passwords.js Administration: Move tabindex="-1" from notice to JS. 2023-09-17 22:51:24 +00:00
application-passwords.min.js Administration: Move tabindex="-1" from notice to JS. 2023-09-17 22:51:24 +00:00
auth-app.js
auth-app.min.js
code-editor.js
code-editor.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
color-picker.js
color-picker.min.js
comment.js General: Remove ableist language from code comments. 2024-02-11 19:14:19 +00:00
comment.min.js
common.js Plugins: Prevent ajaxComplete listener from observing all events. 2023-10-27 19:25:20 +00:00
common.min.js Plugins: Prevent ajaxComplete listener from observing all events. 2023-10-27 19:25:20 +00:00
custom-background.js
custom-background.min.js
custom-header.js
customize-controls.js Customize: Correct a typo in a console warning message. 2024-01-10 11:13:19 +00:00
customize-controls.min.js Customize: Correct a typo in a console warning message. 2024-01-10 11:13:19 +00:00
customize-nav-menus.js
customize-nav-menus.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-widgets.js Widgets: Fix Classic Widgets screen toggle response on small screens. 2022-04-26 06:54:09 +00:00
customize-widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
dashboard.js
dashboard.min.js
edit-comments.js Comments: Prevent AYS prompt when replying to a comment and nothing has been entered. 2022-09-27 17:06:09 +00:00
edit-comments.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
editor-expand.js
editor-expand.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
editor.js
editor.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
farbtastic.js External Libraries: Update deprecated jQuery code in Farbtastic lib. 2023-07-17 22:03:26 +00:00
gallery.js Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00
gallery.min.js Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00
image-edit.js Coding Standards: Remove unused variable el in monitorPopup. 2023-09-21 18:04:16 +00:00
image-edit.min.js Coding Standards: Remove unused variable el in monitorPopup. 2023-09-21 18:04:16 +00:00
inline-edit-post.js Quick/Bulk Edit: Pre-fill category fields with their status. 2024-02-09 19:50:14 +00:00
inline-edit-post.min.js Quick/Bulk Edit: Pre-fill category fields with their status. 2024-02-09 19:50:14 +00:00
inline-edit-tax.js
inline-edit-tax.min.js
iris.min.js
language-chooser.js
language-chooser.min.js
link.js
link.min.js
media-gallery.js
media-gallery.min.js
media-upload.js
media-upload.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
media.js External Libraries: Accessibility: Clean up clipboard.js Copy buttons from focus management workaround. 2023-12-28 15:27:15 +00:00
media.min.js External Libraries: Accessibility: Clean up clipboard.js Copy buttons from focus management workaround. 2023-12-28 15:27:15 +00:00
nav-menu.js Docs: Update various DocBlocks and inline comments per the documentation standards. 2022-11-17 18:15:19 +00:00
nav-menu.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
password-strength-meter.js
password-strength-meter.min.js
password-toggle.js Upgrade/Install: Show/hide toggle on password fields. 2023-06-23 23:09:29 +00:00
password-toggle.min.js Upgrade/Install: Show/hide toggle on password fields. 2023-06-23 23:09:29 +00:00
plugin-install.js
plugin-install.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
post.js General: Remove ableist language from code comments. 2024-02-11 19:14:19 +00:00
post.min.js External Libraries: Accessibility: Clean up clipboard.js Copy buttons from focus management workaround. 2023-12-28 15:27:15 +00:00
postbox.js Docs: Align spelling with American English. 2023-01-10 09:30:13 +00:00
postbox.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
privacy-tools.js
privacy-tools.min.js
revisions.js
revisions.min.js
set-post-thumbnail.js
set-post-thumbnail.min.js
site-health.js External Libraries: Accessibility: Clean up clipboard.js Copy buttons from focus management workaround. 2023-12-28 15:27:15 +00:00
site-health.min.js External Libraries: Accessibility: Clean up clipboard.js Copy buttons from focus management workaround. 2023-12-28 15:27:15 +00:00
site-icon.js General: Add an option to configure the site icon in general settings. 2024-02-12 21:57:09 +00:00
site-icon.min.js General: Add an option to configure the site icon in general settings. 2024-02-12 21:57:09 +00:00
svg-painter.js
svg-painter.min.js
tags-box.js
tags-box.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
tags-suggest.js
tags-suggest.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
tags.js Taxonomy: Only reset non-button form field values after adding a tag. 2022-04-12 19:37:14 +00:00
tags.min.js Taxonomy: Only reset non-button form field values after adding a tag. 2022-04-12 19:37:14 +00:00
theme-plugin-editor.js
theme-plugin-editor.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
theme.js Docs: Replace "sanity" with "confidence" for inclusive language. 2024-01-03 21:59:19 +00:00
theme.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
updates.js Plugins: Only set card button status on plugin install pages. 2024-02-13 12:06:10 +00:00
updates.min.js Plugins: Only set card button status on plugin install pages. 2024-02-13 12:06:10 +00:00
user-profile.js Administration: Hide password in options/writing. 2023-06-22 00:32:21 +00:00
user-profile.min.js Administration: Hide password in options/writing. 2023-06-22 00:32:21 +00:00
user-suggest.js
user-suggest.min.js
widgets.js
widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
word-count.js
word-count.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
xfn.js
xfn.min.js