WordPress/wp-admin/js
TimothyBlynJacobs c3b40f7f80 Site Health, App Passwords: Ensure REST API responses are properly translated.
The REST API requests in Site Health and App Passwords now include `_locale=user` in the request URL to ensure the user's locale is used instead of the site locale. Additionally, the `apiRequest` library now sends a JSON `Accept` header which is required by `determine_locale()` to respect the `_locale` query parameter.

The Site Health REST API controllers now manually load the default admin textdomain if not `is_admin()`. This allows for the Site Health tests to be translated even though the translations are part of the administration project and the REST API is not.

Props oglekler, kebbet, Clorith, TimothyBlynJacobs, ocean90, SergeyBiryukov, adamsilverstein.
Fixes #51871.

Built from https://develop.svn.wordpress.org/trunk@49716


git-svn-id: http://core.svn.wordpress.org/trunk@49439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 03:44:05 +00:00
..
widgets Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
accordion.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
accordion.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
application-passwords.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
application-passwords.min.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
auth-app.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
auth-app.min.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +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: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
color-picker.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/color-picker.js`. 2020-07-07 16:10:05 +00:00
color-picker.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/color-picker.js`. 2020-07-07 16:10:05 +00:00
comment.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/comment.js`. 2020-07-07 18:40:05 +00:00
comment.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/comment.js`. 2020-07-07 18:40:05 +00:00
common.js Customize: Temporary fix for autosave restore notice not being removed 2020-11-17 04:45:11 +00:00
common.min.js Customize: Temporary fix for autosave restore notice not being removed 2020-11-17 04:45:11 +00:00
custom-background.js Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page. 2020-10-29 18:09:13 +00:00
custom-background.min.js Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page. 2020-10-29 18:09:13 +00:00
custom-header.js Docs: Replace `@returns` tags in JS docs with `@return`. 2019-11-29 18:01:03 +00:00
customize-controls.js Customize: Ensure the New Menu section is properly rendered. 2020-10-27 02:48:06 +00:00
customize-controls.min.js Customize: Ensure the New Menu section is properly rendered. 2020-10-27 02:48:06 +00:00
customize-nav-menus.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
customize-nav-menus.min.js Customize: Ensure that widgets and nav-menus can be closed after entering content. 2020-07-13 20:15:06 +00:00
customize-widgets.js Customize: Exclude widget ID attributes from search. 2020-11-12 22:05:09 +00:00
customize-widgets.min.js Customize: Exclude widget ID attributes from search. 2020-11-12 22:05:09 +00:00
dashboard.js Revert the improvenents to arranging of postboxes/metaboxes, [49179]. The current patch fixes about half a dozen problems, but seems more general improvements are needed to how Screen Options work. 2020-10-27 10:47:12 +00:00
dashboard.min.js Revert the improvenents to arranging of postboxes/metaboxes, [49179]. The current patch fixes about half a dozen problems, but seems more general improvements are needed to how Screen Options work. 2020-10-27 10:47:12 +00:00
edit-comments.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
edit-comments.min.js I18N: Fix typo in [48348]. 2020-07-06 21:34:04 +00:00
editor-expand.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
editor-expand.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
editor.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
editor.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
farbtastic.js
gallery.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
gallery.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
image-edit.js Media: clear inputs after cropping on attachment details screen. 2020-10-02 15:11:06 +00:00
image-edit.min.js Media: clear inputs after cropping on attachment details screen. 2020-10-02 15:11:06 +00:00
inline-edit-post.js Quick/Bulk Edit: Fix `undefined` error when initializing UI Autocomplete 1.12.1 on non-existing element and then attempting to use the autocomplete instance. 2020-11-28 12:46:05 +00:00
inline-edit-post.min.js Quick/Bulk Edit: Fix `undefined` error when initializing UI Autocomplete 1.12.1 on non-existing element and then attempting to use the autocomplete instance. 2020-11-28 12:46:05 +00:00
inline-edit-tax.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/inline-edit-post.js` and `wp-admin/js/inline-edit-tax.js`. 2020-07-07 18:02:05 +00:00
inline-edit-tax.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/inline-edit-post.js` and `wp-admin/js/inline-edit-tax.js`. 2020-07-07 18:02:05 +00:00
iris.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
language-chooser.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
language-chooser.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
link.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
link.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-gallery.js Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page. 2020-10-29 18:09:13 +00:00
media-gallery.min.js Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page. 2020-10-29 18:09:13 +00:00
media-upload.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-upload.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/media.js`. 2020-07-07 16:14:06 +00:00
media.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/media.js`. 2020-07-07 16:14:06 +00:00
nav-menu.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
nav-menu.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/nav-menu.js`. 2020-07-07 18:31:05 +00:00
password-strength-meter.js Coding Standards: Reformat some long `apply_filters_deprecated()` and `do_action_deprecated()` calls for better readability. 2020-06-25 12:06:07 +00:00
password-strength-meter.min.js General: Rename `(add|remove)_option_allowed_list()` to `(add|remove)_allowed_option()`. 2020-06-23 18:54:16 +00:00
plugin-install.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/plugin-install.js`. 2020-07-07 18:15:03 +00:00
plugin-install.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/plugin-install.js`. 2020-07-07 18:15:03 +00:00
post.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
post.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
postbox.js Revert the improvenents to arranging of postboxes/metaboxes, [49179]. The current patch fixes about half a dozen problems, but seems more general improvements are needed to how Screen Options work. 2020-10-27 10:47:12 +00:00
postbox.min.js Revert the improvenents to arranging of postboxes/metaboxes, [49179]. The current patch fixes about half a dozen problems, but seems more general improvements are needed to how Screen Options work. 2020-10-27 10:47:12 +00:00
privacy-tools.js Privacy: Use more appropriate verbiage when downloading personal data export file from a row action. 2020-10-23 19:33:07 +00:00
privacy-tools.min.js Privacy: Use more appropriate verbiage when downloading personal data export file from a row action. 2020-10-23 19:33:07 +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: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +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 Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
site-health.min.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
svg-painter.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
svg-painter.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
tags-box.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/tags-box.js` and `wp-admin/js/tags-suggest.js`. 2020-07-06 21:00:03 +00:00
tags-box.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/tags-box.js` and `wp-admin/js/tags-suggest.js`. 2020-07-06 21:00:03 +00:00
tags-suggest.js Quick/Bulk Edit: Follow up to [49703]. Improve the logic a bit and always return `this` (the jQuery object) in `wpTagsSuggest`. 2020-11-30 14:31:04 +00:00
tags-suggest.min.js Quick/Bulk Edit: Follow up to [49703]. Improve the logic a bit and always return `this` (the jQuery object) in `wpTagsSuggest`. 2020-11-30 14:31:04 +00:00
tags.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/tags.js`. 2020-07-06 19:47:03 +00:00
tags.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/tags.js`. 2020-07-06 19:47:03 +00:00
theme-plugin-editor.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`. 2020-10-14 21:13:08 +00:00
theme-plugin-editor.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`. 2020-10-14 21:13:08 +00:00
theme.js Upgrade/Install: Only show auto-update for themes that support the feature. 2020-07-29 20:01:08 +00:00
theme.min.js Upgrade/Install: Only show auto-update for themes that support the feature. 2020-07-29 20:01:08 +00:00
updates.js Administration: Make sure auto-update counts properly update when bulk deleting plugins or themes. 2020-11-12 20:42:10 +00:00
updates.min.js Administration: Make sure auto-update counts properly update when bulk deleting plugins or themes. 2020-11-12 20:42:10 +00:00
user-profile.js Login: Avoid AJAX error on login screen. 2020-10-27 18:43:07 +00:00
user-profile.min.js Login: Avoid AJAX error on login screen. 2020-10-27 18:43:07 +00:00
user-suggest.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
user-suggest.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
widgets.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`. 2020-10-14 21:13:08 +00:00
widgets.min.js I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`. 2020-10-14 21:13:08 +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: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
xfn.js Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
xfn.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00