WordPress/wp-admin/js
Aaron Jorbin c0adfeff65 Plugins: Show an admin notice on successful activation.
Plugin activation on the Plugins > Add New screen is performed using AJAX, no longer performing redirects. This means that users will not see a newly activated plugin's menu items, admin notices, or other UI elements until the user refreshes or navigates to another screen. Without adequate messaging and direction, users may be unsure of what to do next.

This shows an admin notice when a plugin is activated from its plugin card or modal, informing the user that the plugin was activated, and that some changes may not occur until they refresh the page.

Follow-up to [57545].

Reviewed by joedolson.
Merges [58081] to the 6.5 branch.

Props costdev, jorbin, jeherve, flixos90, joedolson, ironprogrammer, audrasjb, alanfuller, kevinwhoffman, devsahadat, afragen, adrianduffell, azaozz, jason_the_adams, JeffPaul, webdevmattcrom, DrewAPicture, justlevine, stevejonesdev, benlk, roytanck.
Fixes #60992. See #22316.

Built from https://develop.svn.wordpress.org/branches/6.5@58083


git-svn-id: http://core.svn.wordpress.org/branches/6.5@57548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-05-02 17:48:13 +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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
auth-app.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
code-editor.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
code-editor.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
color-picker.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
color-picker.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
comment.js General: Remove ableist language from code comments. 2024-02-11 19:14:19 +00:00
comment.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
common.js Quick/Bulk Edit: Ensure the “All” checkbox is properly toggled in certain scenarios. 2024-02-29 22:02:15 +00:00
common.min.js Quick/Bulk Edit: Ensure the “All” checkbox is properly toggled in certain scenarios. 2024-02-29 22:02:15 +00:00
custom-background.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
custom-background.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
custom-header.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
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: Accessibility: Label menu subitems when updating menus. 2024-03-01 16:21:10 +00:00
customize-nav-menus.min.js Customize: Accessibility: Label menu subitems when updating menus. 2024-03-01 16:21:10 +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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
dashboard.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
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: Revert [51748] and [51649]. They intorduced a bug where `wp.editor` may be replaced with `wp.oldEditor` in certain cases. 2021-09-08 23:29:58 +00:00
editor-expand.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
editor.js Editor: Revert [51748] and [51649]. They intorduced a bug where `wp.editor` may be replaced with `wp.oldEditor` in certain cases. 2021-09-08 23:29:58 +00:00
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: Ensure the “All” checkbox is properly toggled in certain scenarios. 2024-02-29 22:02:15 +00:00
inline-edit-post.min.js Quick/Bulk Edit: Ensure the “All” checkbox is properly toggled in certain scenarios. 2024-02-29 22:02:15 +00:00
inline-edit-tax.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
inline-edit-tax.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
iris.min.js External Libraries: Update the Iris color picker to version 1.1.1. 2021-11-03 19:40:00 +00:00
language-chooser.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
language-chooser.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
link.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
link.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
media-gallery.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
media-gallery.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
media-upload.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
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 External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
password-strength-meter.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
privacy-tools.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
revisions.js Docs: Improve comments in `js/_enqueues/wp/revisions.js` per the documentation standards. 2020-01-29 00:37:04 +00:00
revisions.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
set-post-thumbnail.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/set-post-thumbnail.js`. 2020-07-07 18:55:04 +00:00
set-post-thumbnail.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/set-post-thumbnail.js`. 2020-07-07 18:55:04 +00:00
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 Site icon: Polish up Site Icon on the general settings screen. 2024-02-26 20:18:09 +00:00
site-icon.min.js Site icon: Polish up Site Icon on the general settings screen. 2024-02-26 20:18:09 +00:00
svg-painter.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
svg-painter.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
tags-box.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
tags-box.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
tags-suggest.js Script Loader: Switch to JavaScript translations. 2024-02-18 22:16:14 +00:00
tags-suggest.min.js Script Loader: Switch to JavaScript translations. 2024-02-18 22:16:14 +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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
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: Show an admin notice on successful activation. 2024-05-02 17:48:13 +00:00
updates.min.js Plugins: Show an admin notice on successful activation. 2024-05-02 17:48:13 +00:00
user-profile.js Build/Test Tools: Update JSHint config to remove deprecated options. 2024-02-23 10:38:13 +00:00
user-profile.min.js Administration: Hide password in options/writing. 2023-06-22 00:32:21 +00:00
user-suggest.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
user-suggest.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
widgets.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
word-count.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
word-count.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
xfn.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
xfn.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00