Commit Graph

30240 Commits

Author SHA1 Message Date
desrosj a5fd491441 WordPress 5.6.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.6@50063


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 19:30:58 +00:00
desrosj e0864925ac Twenty Twenty-One: Revert [50043] from the 5.6 branch.
Since a new version of Twenty Twenty-One will not be published in coordination with 5.6.1, this will prevent slight differences between the version of the theme that ships with 5.6.1 and the one users received when updating the theme to version `1.1`.

See #52212.
Built from https://develop.svn.wordpress.org/branches/5.6@50062


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 18:57:00 +00:00
whyisjake 34b9667a38 Editor: Update WordPress editor npm packages.
These are backports coming for the 5.6.1 release.

Summary of the following issues: 


* [#27970](https://github.com/WordPress/gutenberg/pull/27970) - Fix editor crash when registering a block pattern without `categories`  Backport to WP Minor Release [Feature] Inserter [Feature] Patterns [Type] Bug
* [#27733](https://github.com/WordPress/gutenberg/pull/27733) - [Embed block]: Add html and reusable support back  Backport to WP Minor Release [Block] Embed [Type] Regression
* [#27727](https://github.com/WordPress/gutenberg/pull/27727) - Add aria labels to box control component inputs/button  Backport to WP Minor Release [Feature] UI Components [Package] Components [Type] Bug [a11y] Labelling
* [#27627](https://github.com/WordPress/gutenberg/pull/27627) - HTML Block: Fix editor styles  Backport to WP Minor Release [Block] HTML [Type] Regression
* [#27526](https://github.com/WordPress/gutenberg/pull/27526) - Core Data: Normalize `_fields` value for use in `stableKey`  Backport to WP Minor Release [Package] Core data [Type] Bug
* [#26705](https://github.com/WordPress/gutenberg/pull/26705) - Fix: Font size picker does not correctly handles big font sizes.  Backport to WP Minor Release [Type] Bug
* [#26432](https://github.com/WordPress/gutenberg/pull/26432) - Edit Site: prevent inserter overscroll  Backport to WP Minor Release First-time Contributor [Feature] Full Site Editing [Type] Bug


Packages updated:

@wordpress/block-directory@1.17.7
@wordpress/block-editor@5.1.6
@wordpress/block-library@2.26.7
@wordpress/components@11.1.4
@wordpress/core-data@2.24.3
@wordpress/edit-post@3.25.7
@wordpress/edit-site@1.15.7
@wordpress/edit-widgets@1.1.7
@wordpress/editor@9.24.6
@wordpress/format-library@1.25.6
@wordpress/interface@0.10.7
@wordpress/list-reusable-blocks@1.24.4
@wordpress/nux@3.23.4
@wordpress/reusable-blocks@1.0.6
@wordpress/server-side-render@1.19.4

Fixes #52391.

Props gziolo, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.6@50061


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 18:22:20 +00:00
whyisjake 3563d72455 Site Health: Update the language around how PHP should be updated.
Follow-up to [50042].

This is a backport of [50058] to the 5.6 branch.

Props SergeyBiryukov.

See #52327.

Built from https://develop.svn.wordpress.org/branches/5.6@50059


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 17:24:59 +00:00
Sergey Biryukov 746b34ecd5 Privacy: Add newlines to the `index.php` file in `wp-personal-data-exports` directory, for consistency with other similar files.
Follow-up to [50037].

Merges [50055] to the 5.6 branch.
See #52299.
Built from https://develop.svn.wordpress.org/branches/5.6@50056


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 13:00:59 +00:00
Sergey Biryukov dfb8d47c85 Docs: Update documentation for `wp_is_site_protected_by_basic_auth()` per the documentation standards.
Follow-up to [49752], [50006].

Merges [50053] to the 5.6 branch.
See #52066.
Built from https://develop.svn.wordpress.org/branches/5.6@50054


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 11:06:58 +00:00
Sergey Biryukov c08b929a9e Docs: Revert documentation change for `wp_get_attachment_metadata()`.
This more accurately describes the behavior of the function, and is more consistent with the documentation for other post and attachment functions.

Follow-up to [50039].

Props Mista-Flo.
Merges [50051] to the 5.6 branch.
See #52196.
Built from https://develop.svn.wordpress.org/branches/5.6@50052


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 10:44:08 +00:00
Sergey Biryukov 5ede137834 Coding Standards: Simplify a long condition in `WP_Site_Health_Auto_Updates::test_wp_version_check_attached()` for better readability.
Follow-up to [50035].

Merges [50049] to the 5.6 branch.
See #52135.
Built from https://develop.svn.wordpress.org/branches/5.6@50050


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 10:38:00 +00:00
whyisjake 49ffe91b72 REST API: Only include the controller's own taxonomy in it's schema.
Previously, all taxonomies were incorrectly exposed as possible values.

This commit brings the changes from [49922] to the 5.6 branch.

Props johnbillion, TimothyBlynJacobs.

Fixes #51940.

Built from https://develop.svn.wordpress.org/branches/5.6@50047


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:53:02 +00:00
whyisjake ed54a900e3 REST API: Fix fatal error on multisite when calling the single item plugin routes.
The `is_network_only_plugin` and `is_plugin_active` functions are not available in a front-end context and must be specifically loaded.

This commit brings the changes from [49952] to the 5.6 branch.

Props oakesjosh, johnbillion, TimothyBlynJacobs.

Fixes #52205.

Built from https://develop.svn.wordpress.org/branches/5.6@50046


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:34:59 +00:00
whyisjake 5e3f9c3b31 App Passwords: Only attempt auth if the username and password are set.
Previously, only the username was checked which caused a PHP warning in some server setups, for instance Shibboleth SSO, where the server only populates the PHP_AUTH_USER field.

This brings the changes from [49919] to the 5.6 branch.

Props MadtownLems, johnbillion, richard.tape, engahmeds3ed, TimothyBlynJacobs.

Fixes #52003.

Built from https://develop.svn.wordpress.org/branches/5.6@50045


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:32:58 +00:00
whyisjake 8cf894710b App Passwords: Extract Basic Auth check into a reusable filterable function.
In [49752] a check was added to prevent creating new Application Passwords if Basic Auth credentials were detected to prevent conflicts. This check takes place in WP-Admin, though a conflict would only arise if Basic Auth was used on the website's front-end.

This commit extracts the Basic Auth check into a reusable function, wp_is_site_protected_by_basic_auth(), which can be adjusted using a filter of the same name. This way, a site that uses Basic Auth to protect WP-Admin can still use the Application Passwords feature.

In the future, instead of requiring the use of a filter, WordPress could make a loopback request and check for a WWW-Authenticate header to make this detection more robust out of the box.

This brings the changes from [50006] to the 5.6 branch.

Props SeBsZ, archon810, aaroncampbell, ocean90, SergeyBiryukov, TimothyBlynJacobs.

Fixes #52066.

Built from https://develop.svn.wordpress.org/branches/5.6@50044


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:28:58 +00:00
whyisjake 4ac068c40f Twenty Twenty-One: Make sure filtering attachment image attributes only affects front end and not the admin area.
This brings the changes from [49930] to the 5.6 branch.

Props denisco, SergeyBiryukov.

Fixes #52212.

Built from https://develop.svn.wordpress.org/branches/5.6@50043


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:22:57 +00:00
whyisjake 955c7aaf24 Site Health: Update php update strings to not overpromise performance.
This commit brings the changes from [40041] to the 5.6 branch.

Fixes #52327.

Props chanthaboune, SergeyBiryukov, audrasjb, Clorith, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.6@50042


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:18:56 +00:00
whyisjake 126a488b6f Media: Ensure that wp_get_attachment_metadata can return values from the global $post, if avaiable.
In [49084] (for #50679), wp_get_attachment_metadata() was changed to improve performance, but it had the side effect of eliminating the ability to call it with no arguments and have it default to using the global $post.

This change restores that ability, while keeping the performance improvements from the original change.

This changeset brings [50039] to the 5.6 branch.

Fixes #52196.
Props cfinke, hellofromTonya, mukesh27, dilipbheda, Mista-Flo, audrasjb, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.6@50040


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 00:09:57 +00:00
whyisjake afeec1960d Privacy: Ensure that exported user data reports can't be found with directory listings.
By moving from .html to .php files, we can prevent directory listings, and ensure that WordPress can load.

This brings the changes from [50037] to the 5.6 branch.

Fixes #52299.

Props lucasbustamante, xkon, freewebmentor, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.6@50038


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-27 23:48:58 +00:00
whyisjake 1073030b2e Site Health: Only run the version checks on the main site.
The version checks that are setup in wp-includes/update.php do set up the action, but only for the main site.

This brings the changes in [50035] to the 5.6 branch.

Fixes #52135.

Props audrasjb, SergeyBiryukov, maxpertici, aaribaud.

Built from https://develop.svn.wordpress.org/branches/5.6@50036


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-27 23:31:59 +00:00
whyisjake c02d41fd63 Editor: Fix improper triggering of the "Are you sure" prompt when navigating away from the old, "classic" Edit Post screen and there are no changes. Was triggered when there is an instance of TinyMCE in the Excerpt postbox.
This brings the changes from [49807] to the 5.6 branch.

Props rodrigosprimo, jonathanstegall, kevin940726, azaozz, metalandcoffee, ifnoob.

Fixes #52038.


Built from https://develop.svn.wordpress.org/branches/5.6@50031


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-27 19:52:00 +00:00
desrosj 1c26077cf1 Build/Test Tools: Update several dependencies in the 5.6 branch.
This backports several dependency updates to the 5.6 branch as a part of #52341 to allow all branches receiving security updates to run on NodeJS 14.x.

Backports [49933,49937,49939,49940,49983,49989,49990,50016,50017] to the 5.6 branch.
See #51801, #52341.
Built from https://develop.svn.wordpress.org/branches/5.6@50023


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-26 15:18:33 +00:00
Sergey Biryukov 06cd27f2e8 App Passwords: Use correct translation function for a heading on Authorize Application screen.
Props akramipro.
Merges [50003] to the 5.6 branch.
Fixes #52351.
Built from https://develop.svn.wordpress.org/branches/5.6@50004


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-23 13:14:56 +00:00
Sergey Biryukov abd4de1400 App Passwords: Ensure the Add New button isn't hidden on mobile.
Also removes an unnecessary `!important` rule introduced in [49772] when fixing a similar issue.

Props vladytimy, mukesh27.
Merges [49921] to the 5.6 branch.
Fixes #51980.
Built from https://develop.svn.wordpress.org/branches/5.6@49999


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-21 12:38:54 +00:00
Sergey Biryukov 9076f6bf5b App Passwords: Correct authorize app action names and signatures.
When App Passwords was introduced, the `wp_authorize_application_password_form` and `wp_application_passwords_approve_app_request_success` hooks were mistakenly duplicated and incorrectly documented. This commit corrects the hook names and ensures the correct parameters are passed.

Props johnbillion, engahmeds3ed.
Merges [49920] to the 5.6 branch.
Fixes #52013.
Built from https://develop.svn.wordpress.org/branches/5.6@49998


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-21 12:35:55 +00:00
Sergey Biryukov 62b2f7dd50 Site Health: Use a front-end URL for loopback tests.
In [49154] the async Site Health tests were changed to use the REST API instead of admin-ajax. An unintended side effect of this change was that the loopback tests which tried to ping the site's `admin_url()` were no longer authenticated because admin-cookies aren't provided to the REST API.

This commit adjusts the loopback test to use the front-end `site_url` which checks that cron will function properly. A follow-up ticket will focus on tests that will cover the file editor checks.

Props Clorith.
Merges [49917] to the 5.6 branch.
Fixes #52097.
See #48105.
Built from https://develop.svn.wordpress.org/branches/5.6@49997


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-21 12:32:54 +00:00
Sergey Biryukov 54e45457a8 Editor: Trigger the `tinymce-editor-init` custom jQuery event on DOM ready.
Otherwise TinyMCE may initialize earlier and handlers attached on DOM ready may not get triggered. Fixes making the editor menu "sticky" and setting/resetting some screen options on the old Edit Post screen.

Props azaozz, majhajob, sabernhardt.
Merges [49911] to the 5.6 branch.
Fixes #52046, #51995.
Built from https://develop.svn.wordpress.org/branches/5.6@49996


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-21 12:30:55 +00:00
Sergey Biryukov afc1e56b2a Media: Use consistent method for instantiating an attachment author object in Media Library.
Previously, attachments without an author could cause a PHP fatal error due to calling the `::exists()` method on a `false` value.

Follow-up to [49207].

Props antpb, carloscastilloadhoc, hellofromTonya, garrett-eclipse.
Merges [49979] to the 5.6 branch.
Fixes #52030.
Built from https://develop.svn.wordpress.org/branches/5.6@49995


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-21 12:21:58 +00:00
desrosj fba21f8227 Build/Test Tools: Remove the TravisCI configuration file.
In [49162], GitHub Action workflow configuration files were introduced to run all of Core’s automated testing with the intent to fully transition after some time was allowed for testing.

After two full months of testing, the time to finish this transition has come.

We thank TravisCI for testing the codebase through nearly 20 major and many more minor releases.

Merges [49876] to the 5.6 branch.
See #52161. See #50401.
Built from https://develop.svn.wordpress.org/branches/5.6@49877


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 21:04:10 +00:00
desrosj c483b794f5 Bundled Themes: Bump the versions of Twenty Twenty-One and Twenty Nineteen.
New versions:

- Twenty Twenty-One: 1.1.
- Twenty Nineteen: 1.9.

Props poena.
Merges [49873] to the 5.6 branch.
Fixes #52160.
Built from https://develop.svn.wordpress.org/branches/5.6@49875


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 18:24:04 +00:00
desrosj 15f78ee70f Twenty Nineteen: Add the `block-patterns` tag to the appropriate SASS file.
This prevents the tag from being removed from `styles.css` when rebuilding the CSS.

Props danfarrow.
Merges [49872] to the 5.6 branch.
Fixes #52159.
Built from https://develop.svn.wordpress.org/branches/5.6@49874


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 18:22:11 +00:00
ryelle db276427f8 Twenty Twenty-One: Set a maximum width on inputs.
Text inputs with a size attribute can end up longer than the screen width on small screens. A max-width of 100% keeps the inputs from breaking out of the container.

Props basscan, kjellr, poena, sabernhardt.
Merges [49870] to the 5.6 branch.
Fixes #52083.


Built from https://develop.svn.wordpress.org/branches/5.6@49871


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 17:09:05 +00:00
desrosj 5990e9abc4 Twenty Twenty-One: Improve strings found in post navigations for easier translating.
This change adjusts strings found within post navigations to ensure translators are provided the full context needed to properly translate.

Props poena, SergeyBiryukov, aristath.
Merges [49866] to the 5.6 branch.
Fixes #52047.
Built from https://develop.svn.wordpress.org/branches/5.6@49869


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 16:21:04 +00:00
desrosj e96048d2f0 Twenty Twenty-One: Only load IE specific polyfills when actually using Internet Exploreer.
The `twenty-twenty-one-ie11-polyfills` script now has a `null` source, and the new `twenty-twenty-one-ie11-polyfills-asset` (which points to the actual `polyfills.js` source) will be loaded only if IE is detected by through the use of `wp_get_script_polyfill()`.

Because the original script name remains the same, this change is backwards compatible with any code registering `twenty-twenty-one-id11-polyfills` as a script dependency.

Props poena, ismail.elkorchi, peterwilsoncc.
Merges [49865] to the 5.6 branch.
Fixes #52098.
Built from https://develop.svn.wordpress.org/branches/5.6@49868


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 16:19:08 +00:00
desrosj 0d2e06e77e Twenty Twenty-One: Improve striped table styling in Dark Mode.
This change improves the display of table blocks with the “Stripes” style selected.

Previously, the text was not visible in striped rows when using Dark Mode.

Props ryelle, poena, melchoyce, celendesign, audrasjb.
Merges [49864] to the 5.6 branch.
Fixes #52129.
Built from https://develop.svn.wordpress.org/branches/5.6@49867


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 16:17:15 +00:00
desrosj ff94866fe6 Twenty Twenty-One: Do not specify `loading=“eager”` for single post thumbnails.
While `loading=“eager”` is a supported alternative to omitting the attribute entirely, browsers follow the value of this attribute explicitly when specified.

Specifying `eager` would prevent the user from receiving any additional potential benefits implemented at the browser level, such as further mechanisms to automatically decide which elements to lazy-load.

Props flixos90, ryelle, poena.
Merges [49860] to the 5.6 branch.
Fixes #52139.
Built from https://develop.svn.wordpress.org/branches/5.6@49861


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-21 18:51:04 +00:00
desrosj 7c08559e8c Twenty Twenty-One: Allow local anchor links to be used in primary navigation.
This adds some JavaScript to detect when an anchor link is clicked within the primary navigation on mobile devices and closes the menu before scrolling to the location on the page.

Props poena, macmanx, t-p.
Merges [49854] to the 5.6 branch.
Fixes #52006.
Built from https://develop.svn.wordpress.org/branches/5.6@49855


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-21 15:16:04 +00:00
desrosj 9ef2645fd7 Twenty Twenty-One: Use `esc_url()` for the WordPress.org link in `footer.php`.
Props mukesh27, poena.
Merges [49762] into the 5.6 branch.
Fixes #51954.
Built from https://develop.svn.wordpress.org/branches/5.6@49853


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-21 13:54:03 +00:00
desrosj f87036bf28 Twenty Twenty-One: Make text within code blocks readable in Dark Mode.
This change ensures that the primary text color specific to Dark Mode is used instead of the one specified for normal mode. The latter is not legible in Dark Mode.

Props slaFFik, poena, mukesh27, justinahinon.
Merges [49825] to the 5.6 branch.
Fixes #51985.
Built from https://develop.svn.wordpress.org/branches/5.6@49852


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-21 13:29:07 +00:00
desrosj c58417db0d Twenty Twenty-One: Prevent `<iframe>` embeds from being too narrow.
This fixes an issue where `<iframe>` embeds were being pushed to the side of the screen and compressed to the point of being unusable.

Props helen, mukesh27, poena, thorlentz.
Merges [49823] to the 5.6 branch.
Fixes #52004.
Built from https://develop.svn.wordpress.org/branches/5.6@49851


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-21 13:27:07 +00:00
Sergey Biryukov cbd035f1a5 Twenty Twenty-One: Clarify a sentence in `readme.txt`.
Props gkibria69.
Merges [49838] to the 5.6 branch.
Fixes #52120.
Built from https://develop.svn.wordpress.org/branches/5.6@49839


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-19 20:38:10 +00:00
desrosj 6197e8faec Twenty Twenty-One: Correct `@since` inline documentation tags.
Previously, `1.0.0` was used for the version. This is inconsistent with the versioning used in the other default themes, which use use X.X and not X.X.X.

This change corrects all `1.0.0` occurrences to `1.0`, and adds the additional context of `Twenty Twenty-One` to avoid confusion with `WordPress 1.0`.

Props SergeyBiryukov, poena.
Merges [49826] to the 5.6 branch.
Fixes #51958.
Built from https://develop.svn.wordpress.org/branches/5.6@49829


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 15:10:08 +00:00
desrosj e15b0fac76 Twenty Nineteen: Add images for use in block patterns.
The block patterns were added in #51099, but the images were not included in the commit. This adds the images to the expected folder.

Props transl8or, mukesh27, ryelle.
Merges [49793] to the 5.6 branch.
Fixes #51996.
Built from https://develop.svn.wordpress.org/branches/5.6@49828


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 15:08:03 +00:00
desrosj fa8b856866 Twenty Twenty-One: Use consistent HTML comments after closing HTML tags.
Follow-up to [45209] for other bundled themes.

Props arcangelini, audrasjb.
Merges [49761] to the 5.6 branch.
Fixes #51950.
Built from https://develop.svn.wordpress.org/branches/5.6@49827


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 15:03:07 +00:00
desrosj 0255d32689 Twenty Twenty-One: Bring back PostCSS config.
Twenty Twenty-One uses PostCSS to convert the custom properties for Internet Explorer. Without a config file, the postcss command does nothing, causing issues in IE. This brings back the config from GitHub, which replaces all custom properties with the default values.

Props t-p, poena, ryelle.
Merges [49800] to the 5.6 branch.
Fixes #52040.
Built from https://develop.svn.wordpress.org/branches/5.6@49824


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 14:07:04 +00:00
desrosj d5b456fff3 Build/Test Tools: Update several NPM packages.
These were updated using npm audit fix.

Merges [49791] to the 5.6 branch.
See #51801.
Built from https://develop.svn.wordpress.org/branches/5.6@49821


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 13:34:15 +00:00
desrosj 881fb26648 Media: Fix the template for the "Align" and "Link To" fields in the media modal when inserting an image from URL.
Props noisysocks, mukesh27.
Merges [49804] to the 5.6 branch.
Fixes #52065.
Built from https://develop.svn.wordpress.org/branches/5.6@49820


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 13:02:05 +00:00
desrosj a54ecd84f3 Twenty Twenty-One: Use a more specific link for Dark Mode instructions.
Make both instances of the link translatable, for consistency.

Props engahmeds3ed, justinahinon.
Merges [49798] to the 5.6 branch.
Fixes #52010.
Built from https://develop.svn.wordpress.org/branches/5.6@49819


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 13:00:09 +00:00
desrosj 21bd25a8e7 Twenty Twenty-One: Fix typos in some inline comments.
Props tanvirul, mukesh27.
Merges [49795] to the 5.6 branch.
Fixes #52042.
Built from https://develop.svn.wordpress.org/branches/5.6@49818


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:58:05 +00:00
desrosj 1aa3b6b2e5 Twenty Twenty-One: Fix typos in some inline comments.
Props manzurahammed, mukesh27.
Merges [49801] to the 5.6 branch.
Fixes #52071.
Built from https://develop.svn.wordpress.org/branches/5.6@49817


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:56:05 +00:00
desrosj a52e001308 Twenty Twenty-One: Correct version in file-header.scss.
Props SergeyBiryukov.
Merges [49799] to the 5.6 branch.
Fixes #52044.
Built from https://develop.svn.wordpress.org/branches/5.6@49816


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:54:05 +00:00
desrosj b5b4bc3cd1 Twenty Twenty-One: Correct the DocBlock for `map-deep-set()` Sass function.
Props mukesh27.
Merges [49799] to the 5.6 branch.
Fixes #52064.
Built from https://develop.svn.wordpress.org/branches/5.6@49815


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:52:09 +00:00
desrosj e2b6b7309e Build/Test Tools: Remove the Appveyor configuration file.
Appveyor was added to Core in [44594] to ensure that NPM and the WordPress build tools continue to work correctly on Windows systems as changes are made. Using an additional service for this was required at the time, TravisCI did not support testing on Windows.

[49162] introduced a GitHub Action workflow that performed the same testing. Since all automated testing is moving to GitHub Actions, using Appveyor is no longer necessary, and it’s preferable to have all automated testing in one location as much as possible.

Props ayeshrajans.
Merges [49779] to the 5.6 branch.
See #51968.
Built from https://develop.svn.wordpress.org/branches/5.6@49809


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:27:11 +00:00
iandunn 27b776fd90 Feed: Merge multiple header values to avoid fatal error.
When SimplePie parses HTTP headers, it combines multiple values for the same header into a comma-separated string. `WP_SimplePie_File` overrides the parsing, but was leaving them as an array instead.

That lead to a fatal error in PHP 8, because other parts of the codebase ended up passing an array to a function that expected a string.

Props david.binda, litemotiv, inc2734, NicolasKulka, hellofromTonya, mbabker, skithund, SergeyBiryukov, desrosj, timothyblynjacobs.
Reviewed by SergeyBiryukov, iandunn.
Merges [49803] and [49805] to the 5.6 branch.
Fixes #51056. See #51956.

Built from https://develop.svn.wordpress.org/branches/5.6@49806


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-16 14:26:06 +00:00
Helen Hou-Sandí 5c765ae652 The 5.6 branch is now 5.6.1-alpha.
Built from https://develop.svn.wordpress.org/branches/5.6@49778


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-08 23:50:10 +00:00
Helen Hou-Sandí f51761c16e WordPress 5.6.
Built from https://develop.svn.wordpress.org/branches/5.6@49776


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-08 22:10:02 +00:00
Helen Hou-Sandí e0b55f4a75 Update `$_old_files` for 5.6.
See #39943.
Merges [49774] to the 5.6 branch.

Built from https://develop.svn.wordpress.org/branches/5.6@49775


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-08 21:52:05 +00:00
Helen Hou-Sandí 8c11a1e249 App Passwords: Ensure redirection description is shown on mobile devices.
Props TimothyBlynJacobs.
Fixes #51970.
Merges [49772] to the 5.6 branch.

Built from https://develop.svn.wordpress.org/branches/5.6@49773


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-08 20:31:04 +00:00
ryelle 2ee84b90e6 Help/About: Use CDN URLs for About page images.
Reviewed by ryelle, SergeyBiryukov.
Merges [49770] to the 5.6 branch.
Fixes #51415.


Built from https://develop.svn.wordpress.org/branches/5.6@49771


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-08 18:39:05 +00:00
Helen Hou-Sandí cc242b9f32 Post WordPress 5.6 RC 5 version bump.
Built from https://develop.svn.wordpress.org/branches/5.6@49768


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-07 21:48:02 +00:00
Helen Hou-Sandí ec68acf84e WordPress 5.6 RC 5.
Built from https://develop.svn.wordpress.org/branches/5.6@49767


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-07 21:26:04 +00:00
Helen Hou-Sandí 99923ad9b3 Bundled Themes: Bump theme versions ahead of WordPress 5.6.
The following theme versions will be released in coordination with WordPress 5.6:

* Twenty Ten: 3.2
* Twenty Eleven: 3.6
* Twenty Twelve: 3.3
* Twenty Thirteen: 3.2
* Twenty Fourteen: 3.0
* Twenty Fifteen: 2.8
* Twenty Sixteen: 2.3
* Twenty Seventeen: 2.5
* Twenty Nineteen: 1.8
* Twenty Twenty: 1.6
* Twenty Twenty-One: 1.0

Props peterwilsoncc, hareesh-pillai, dkarfa, sabernhardt, poena, aristath, SergeyBiryukov.
Fixes #51919.
Merges [49763] to the 5.6 branch.

Built from https://develop.svn.wordpress.org/branches/5.6@49766


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-07 20:32:10 +00:00
Helen Hou-Sandí 35bf493381 App Passwords: Store the "in use" option in the main network options.
Whether App Passwords are being used is a global featurel, not a per-network feature. This fixes issues on Multi Network installs if App Passwords are used on a different network from where they were created.

Props spacedmonkey.
Fixes #51939.
See [49752].
Merges [49764] to the 5.6 branch.

Built from https://develop.svn.wordpress.org/branches/5.6@49765


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-07 20:01:06 +00:00
Peter Wilson dc95d8a382 Twenty Twenty-One: Fix the nesting of the main element.
The main element must not appear as a descendant of the section element. Correct markup is the first requirement to make user agents and assistive technologies work properly.

Changes the <section> element that was wrapping the <main> element to a <div>.

Follow-up to [45942] for Twenty Nineteen.

Props albertomake, poena.
Reviewed by SergeyBiryukov, peterwilsoncc.
Merges [49759] to the 5.6 branch.
Fixes #51944.

Built from https://develop.svn.wordpress.org/branches/5.6@49760


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-06 22:06:12 +00:00
Helen Hou-Sandí 6e2834c6d7 Post WordPress 5.6 RC 4 version bump.
Built from https://develop.svn.wordpress.org/branches/5.6@49756


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-04 22:34:08 +00:00
Helen Hou-Sandí bdc0b7bb98 WordPress 5.6 RC 4.
Built from https://develop.svn.wordpress.org/branches/5.6@49755


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-04 22:16:06 +00:00
Helen Hou-Sandí 1fc7b75913 App Passwords: Prevent conflicts when Basic Auth is already used by the site.
Application Passwords uses Basic Authentication to transfer authentication details. If the site is already using Basic Auth, for instance to implement a private staging environment, then the REST API will treat this as an authentication attempt and would end up generating an error for any REST API request.

Now, Application Password authentication will only be attempted if Application Passwords is in use by a site. This is flagged by setting an option whenever an Application Password is created. An upgrade routine is added to set this option if any App Passwords already exist.

Lastly, creating an Application Password will be prevented if the site appears to already be using Basic Authentication.

Props chexwarrior, georgestephanis, adamsilverstein, helen, Clorith, marybaum, TimothyBlynJacobs.
Reviewed by TimothyBlynJacobs, helen.
Merges [49752] to the 5.6 branch.
Fixes #51939.

Built from https://develop.svn.wordpress.org/branches/5.6@49754


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-04 21:48:03 +00:00
iandunn cb323ada27 Media: Return `WP_Error` when cropping with bad input to avoid fatal.
This avoids an error on PHP 8 caused by calling `wp_imagecreatetruecolor()` with inputs that aren't numeric, or are less than 0.

Props hellofromtonya, Boniu91, metalandcoffee, SergeyBiryukov.
Reviewed by SergeyBiryukov, iandunn.
Merges [49751] to the 5.6 branch.
Fixes #51937.

Built from https://develop.svn.wordpress.org/branches/5.6@49753


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-04 21:46:06 +00:00
Helen Hou-Sandí bb64e43912 Post WordPress 5.6 RC 3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.6@49749


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 22:06:07 +00:00
Helen Hou-Sandí b023822235 WordPress 5.6 RC 3.
Built from https://develop.svn.wordpress.org/branches/5.6@49748


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 21:46:08 +00:00
Sergey Biryukov 9420b66fd0 App Passwords: Ensure the Created At and Last Used dates are properly translated.
The `date_i18n` function is now used when formatting the dates in PHP instead of `gmdate` which doesn't handle localization properly.

Additionally, we now use a translation to get the date format to use instead of pulling from the `date_format` option which is only supposed to affect the front-end.

Lastly, when passing the date format to the Backbone JS template, we now use `wp_json_encode()` to format the value for JavaScript. This ensures that backslashes are properly preserved which are used by some locales to escape date formatting control characters.

Props pedromendonca, TimothyBlynJacobs, ocean90, hellofromtonya, SergeyBiryukov, antpb.
Reviewed by TimothyBlynJacobs, SergeyBiryukov.
Merges [49746] to the 5.6 branch.
Fixes #51918.
See [35811].
Built from https://develop.svn.wordpress.org/branches/5.6@49747


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 21:09:01 +00:00
iandunn e0449d4a8e Multisite: Cache absolute `dirsize` paths to avoid PHP 8 fatal.
r49212 greatly improved the performance of `get_dirsize()`, but also changed the structure of the data stored in the `dirsize_cache` transient. It stored relative paths instead of absolute ones, and also removed the unnecessary `size` array.

That difference in data structures led to a fatal error in the following environment:

* PHP 8
* Multisite
* A custom `WP_CONTENT_DIR` which is not a child of WP's `ABSPATH` folder (e.g., [https://roots.io/bedrock/ Bedrock])
* The `upload_space_check_disabled` option set to `0`

After upgrading to WP 5.6, the `dirsize_cache` transient still had data in the old format. When `wp-admin.php/index.php` was visited, `get_space_used()` received an `array` instead of an `int`, and tried to divide it by another `int`. PHP 7 would silently cast the arguments to match data types, but [https://wiki.php.net/rfc/arithmetic_operator_type_checks PHP 8 throws a fatal error]: 

`Uncaught TypeError: Unsupported operand types: array / int`

`recurse_dirsize()` was using `ABSPATH` to convert the absolute paths to relative ones, but some upload locations are not located under `ABSPATH`. In those cases, `$directory` and `$cache_path` were identical, and that triggered the early return of the old `array`, instead of the expected `int`. 

In order to avoid that, this commit restores the absolute paths, but without the `size` array. It also adds a type check when returning cached values. Using absolute paths without `size` has the result of overwriting the old data, so that it matches the new format. The type check and upgrade routine are additional safety measures.

Props peterwilsoncc, janthiel, helen, hellofromtonya, francina, pbiron.
Reviewed by SergeyBiryukov, iandunn.
Merges [49744] to the 5.6 branch.
Fixes #51913. See #19879.


Built from https://develop.svn.wordpress.org/branches/5.6@49745


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 20:45:04 +00:00
Sergey Biryukov 632bed2793 Upgrade/Install: Check `$wp_version` global for displaying "You are using a development version" message in the admin footer.
This brings some consistency with the same check in `core_upgrade_preamble()` and avoids a PHP warning if `$cur->version` is not set.

Additionally, remove the check for `$cur->url` property, unused since [8595].

Follow-up to [49708], [49709].

Props pbiron, afragen, audrasjb.
Reviewed by azaozz, SergeyBiryukov.
Merges [49736] to the 5.6 branch.
Fixes #51892.
Built from https://develop.svn.wordpress.org/branches/5.6@49743


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 20:23:01 +00:00
Sergey Biryukov 1e9197328f Upgrade/Install: Update sodium_compat to v1.14.0.
This includes improved PHP 8 support and more inclusive language.

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.13.0...v1.14.0

Follow-up to [48121], [49056], [49057].

Props jrf.
Reviewed by jrf, SergeyBiryukov.
Merges [49741] to the 5.6 branch.
Fixes #51925.
Built from https://develop.svn.wordpress.org/branches/5.6@49742


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 17:43:04 +00:00
Sergey Biryukov 65ef0dcbb9 App Passwords: Return true when rate limiting a password's last used time.
Previously we returned a `WP_Error` instance saying that the password was not found which is inaccurate.

Props dlh.
Reviewed by TimothyBlynJacobs, SergeyBiryukov.
Merges [49739] to the 5.6 branch.
Fixes #51922.
Built from https://develop.svn.wordpress.org/branches/5.6@49740


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 17:23:05 +00:00
Sergey Biryukov b152d93471 Editor: Update components package for WordPress 5.6 RC3.
@wordpress/components: 11.1.2 -> 11.1.3

This fixes an accessibility regression with VoiceOver not announcing the input label or an existing selection in the parent page dropdown under "Page Attributes" in the sidebar.

See https://github.com/WordPress/gutenberg/pull/27431 for more details.

Props isabel_brison, sarahricker, alexstine, kevin940726, talldanwp.
Reviewed by isabel_brison, SergeyBiryukov.
Merges [49737] to the 5.6 branch.
Fixes #51923.
Built from https://develop.svn.wordpress.org/branches/5.6@49738


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-03 14:47:29 +00:00
Helen Hou-Sandí ca0e9e0891 Post WordPress 5.6 RC 2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.6@49734


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 22:05:06 +00:00
Helen Hou-Sandí 310b4a2172 WordPress 5.6 RC 2.
Built from https://develop.svn.wordpress.org/branches/5.6@49733


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 21:45:04 +00:00
John Blackbourn 670319d84d REST API: Pass the previous state of the post as a parameter to the `wp_after_insert_post` hook.
This enables, for example, the previous post status to be used by this hook without the need to first capture it on an earlier hook.

This also fixes the value of the `$fire_after_hooks` parameter in `get_default_post_to_edit()` so the `wp_after_insert_post` action correctly fires just once on the new post screen.

This merges [45114] into the 5.6 branch

See #45114

Built from https://develop.svn.wordpress.org/branches/5.6@49732


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 20:57:05 +00:00
Sergey Biryukov ea6021160a Tests: Ignore EOL differences in `WP_List_Table::get_bulk_items()` test for optgroups.
This avoids a misleading failure due to Unix vs. Windows EOL style mismatches and allows the test to pass on Windows.

Follow-up to [46612], [49190].

Reviewed by desrosj, SergeyBiryukov.
Merges [49691] to the 5.6 branch.
Fixes #19278.
Built from https://develop.svn.wordpress.org/branches/5.6@49730


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 19:42:05 +00:00
Sergey Biryukov 1857a746a5 Help/About: Move trailing punctuation in the jQuery Migrate Helper plugin link outside of the HTML tag.
Props psmits1567, audrasjb, tobifjellner, fierevere, markscottrobson.
Reviewed by desrosj, SergeyBiryukov.
Merges [49685] to the 5.6 branch.
Fixes #51813.
Built from https://develop.svn.wordpress.org/branches/5.6@49729


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 19:35:07 +00:00
desrosj f8045141ad Twenty Twenty-One: Sync the latest changes for 5.6 RC2.
This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.

For a full list of changes since [49633], see 1d5a895...53acd9b.

Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
Reviewed by desrosj, SergeyBiryukov.
Merges [49726] to the 5.6 branch.
Fixes #51526.
Built from https://develop.svn.wordpress.org/branches/5.6@49728


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 19:27:08 +00:00
Sergey Biryukov d65c9e08eb Administration: Make sure row actions for recent comments in Activity dashboard widget stay visible when a single row gets focus.
Follow-up to [49142].

Props sabernhardt, kebbet, hareesh-pillai, pbiron.
Reviewed by ryelle, SergeyBiryukov.
Merges [49725] to the 5.6 branch.
Fixes #51886. See #51516, #49715.
Built from https://develop.svn.wordpress.org/branches/5.6@49727


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 19:21:06 +00:00
Sergey Biryukov 4541784a4f 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.
Reviewed by TimothyBlynJacobs, SergeyBiryukov.
Merges [49716] to the 5.6 branch.
Fixes #51871.
Built from https://develop.svn.wordpress.org/branches/5.6@49724


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 18:07:08 +00:00
Sergey Biryukov effd0cc28e Editor: Don't unnecessarily split a translatable string in block templates.
As a best practice, strings available for translation should contain entire sentences whenever possible.

Splitting a sentence in two parts and putting them back together after translation should be avoided, as the word order in other languages can be different from English.

Props tobifjellner, kebbet, audrasjb, mukesh27, hellofromTonya, azaozz, SergeyBiryukov.
Reviewed by azaozz, SergeyBiryukov.
Merges [49722] to the 5.6 branch.
Fixes #51893.
Built from https://develop.svn.wordpress.org/branches/5.6@49723


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 17:06:05 +00:00
Sergey Biryukov 49b15e942d Media: Revert [49567].
This addresses a regression with the pagination section in Media Library no longer taking additional query filtering into account.

Props iCaleb, trepmal, peterwilsoncc.
Reviewed by peterwilsoncc, SergeyBiryukov.
Merges [49720] to the 5.6 branch.
See #39968.
Built from https://develop.svn.wordpress.org/branches/5.6@49721


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 16:35:04 +00:00
Sergey Biryukov 024e5438ec Editor: Update packages for WordPress 5.6 RC2.
The following package versions were changed:

@wordpress/block-directory: 1.17.4 -> 1.17.5
@wordpress/block-editor: 5.1.3 -> 5.1.4
@wordpress/block-library: 2.26.4 -> 2.26.5
@wordpress/blocks: 6.24.1 -> 6.24.2
@wordpress/components: 11.1.1 -> 11.1.2
@wordpress/core-data: 2.24.1 -> 2.24.2
@wordpress/edit-post: 3.25.4 -> 3.25.5
@wordpress/editor: 9.24.3 -> 9.24.4
@wordpress/format-library: 1.25.3 -> 1.25.4
@wordpress/list-reusable-blocks: 1.24.1 -> 1.24.2
@wordpress/nux: 3.23.1 -> 3.23.2
@wordpress/reusable-blocks: 1.0.3 -> 1.0.4
@wordpress/server-side-render: 1.19.1 -> 1.19.2

See https://github.com/WordPress/gutenberg/pull/27366 for the list of fixed bugs.

Props isabel_brison.
Reviewed by isabel_brison, SergeyBiryukov.
Merges [49718] to the 5.6 branch.
Fixes #51902.
Built from https://develop.svn.wordpress.org/branches/5.6@49719


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 12:21:40 +00:00
Andrew Ozz 08062ba641 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.
Example: `jQuery( '#nonexisting' ).autocomplete().autocomplete( 'instance' ).something`.

Props _luigi, sabernhardt, donmhico, azaozz.
Reviewed by SergeyBiryukov, azaozz.
Merges [49703] and [49710] to the 5.6 branch.
Fixes #51872.
Built from https://develop.svn.wordpress.org/branches/5.6@49717


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-01 07:32:06 +00:00
Sergey Biryukov 53730e99fc Help/About: Update URLs in About page.
Replace the placeholder links now that the posts have been published. This also updates the jQuery plugin links to to local-site links, if the user can install plugins.

Follow-up to [49640].

Props mukesh27, ocean90.
Reviewed by ryelle, SergeyBiryukov.
Merges [49702] to the 5.6 branch.
See #51415.
Built from https://develop.svn.wordpress.org/branches/5.6@49715


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-30 17:32:04 +00:00
Sergey Biryukov 9c416615ce External Libraries: Upgrade PHPMailer to version 6.2.0.
For a full list of changes in this update, see the PHPMailer GitHub:
https://github.com/PHPMailer/PHPMailer/compare/v6.1.8...v6.2.0

Props ayeshrajans, jrf.
Reviewed by jrf, SergeyBiryukov.
Merges [49713] to the 5.6 branch.
Fixes #51874.
Built from https://develop.svn.wordpress.org/branches/5.6@49714


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-30 17:26:08 +00:00
Sergey Biryukov 3ccb035e8d Upgrade/Install: Display "You are using a development version" message on WordPress Updates screen for Beta or RC versions.
This ensures that the message is displayed when the `WP_AUTO_UPDATE_CORE` constant is set to `beta` or `rc` and the user is on a development version.

Follow-up to [49245], [49254], [49292], [49638], [49708].

Props afragen, audrasjb, azaozz, SergeyBiryukov.
Reviewed by azaozz, SergeyBiryukov.
Merges [49709] and [49668] to the 5.6 branch.
Fixes #51822.
Built from https://develop.svn.wordpress.org/branches/5.6@49712


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-30 16:53:05 +00:00
Sergey Biryukov 74600c1eed Upgrade/Install: Display "You are using a development version" message in the admin footer for Beta or RC versions.
This ensures that the message is displayed when the `WP_AUTO_UPDATE_CORE` constant is set to `beta` or `rc` and the user is on a development version.

Props afragen.
Reviewed by azaozz, SergeyBiryukov.
Merges [49708] to the 5.6 branch.
Fixes #51892.
Built from https://develop.svn.wordpress.org/branches/5.6@49711


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-30 16:38:09 +00:00
Andrew Ozz 6eec8bae02 External Libraries: Fix hiding of the text in the jQuery UI dialog close button.
Props marijnkoopman, SergeyBiryukov, Clorith, azaozz.
Merges [49704] to the 5.6 branch.
Fixes #51863.
Built from https://develop.svn.wordpress.org/branches/5.6@49707


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-29 09:56:09 +00:00
Sergey Biryukov 4c86c9d38c Comments: Correct ending tag placement in the "Search results for: ..." subtitle.
Follow-up to [49284], [49286].

Props Clorith, kebbet, johnbillion, audrasjb, azaozz.
Reviewed by azaozz, SergeyBiryukov.
Merges [49705] to the 5.6 branch.
Fixes #51889. See #37353.
Built from https://develop.svn.wordpress.org/branches/5.6@49706


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-28 17:32:04 +00:00
noisysocks bc71ca7797 Editor: Remove render_block hooks from WP_Block
Reverts the move of pre_render_block, render_block_data, and
render_block_context to WP_Block.

This change has more implications than first thought so will be revisted later
in 5.7.

Reverts [49609,49608].
See #51612.

Built from https://develop.svn.wordpress.org/branches/5.6@49694


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-25 01:15:11 +00:00
desrosj 84e7b276b2 Build/Test Tools: Remove the E2E test GitHub Action workflow from the 5.6 branch.
The E2E test suite does not currently perform any meaningful tests, so continuing to run the workflow is not necessary for older branches.

Reviewed by peterwilsoncc, desrosj.
Fixes #51853.

Built from https://develop.svn.wordpress.org/branches/5.6@49690


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-24 16:07:04 +00:00
desrosj 626b4e78a7 Build/Test Tools: Remove the E2E test job from the 5.6 branch.
The E2E test job does not currently perform any meaningful tests, so continuing to run them is not necessary for older branches.

Reviewed by peterwilsoncc, desrosj.
Fixes #51853.

Built from https://develop.svn.wordpress.org/branches/5.6@49689


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-24 16:05:08 +00:00
Sergey Biryukov a68d20cfcc Help/About: Clarify accessibility features.
* Captions are uploaded in the block editor, and not created in the editor.
* Avoid making an invalid claim of WCAG 2.1 conformance or trivialize the efforts still required to build an accessible and compliant site.

Follow-up to [49640].

Props joedolson.
Reviewed by ryelle, SergeyBiryukov.
Merges [49674] to the 5.6 branch.
See #51415.
Built from https://develop.svn.wordpress.org/branches/5.6@49687


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-23 19:42:02 +00:00
Sergey Biryukov 3cdf510961 Help/About: Correct placeholder for the accessibility statement feature plugin link.
Add missing translator comment.

Props audrasjb.
Reviewed by ryelle, SergeyBiryukov.
Merges [49651] to the 5.6 branch.
See #51415.
Built from https://develop.svn.wordpress.org/branches/5.6@49686


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-23 19:40:05 +00:00
Sergey Biryukov 5bbff0b5d6 Docs: Correct `$fire_after_hooks` parameter name in `@since` tags.
Follow-up to [49172], [49173].

Merges [49673] to the 5.6 branch.
Reviewed by peterwilsoncc, SergeyBiryukov.
Fixes #45114.
Built from https://develop.svn.wordpress.org/branches/5.6@49684


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-23 18:59:05 +00:00
Sergey Biryukov f677bc838e Upgrade/Install: Replace the conditionals that check the `AUTOMATIC_UPDATER_DISABLED` constant and the `automatic_updater_disabled` filter in update-core.php with a call to `WP_Automatic_Updater::is_disabled()`.
This prevents a PHP warning, fixes the logic, and considers `wp_is_file_mod_allowed( 'automatic_updater' )` when determining the UI state.

Props jamesros161, pbiron, audrasjb, azaozz.
Merges [49677] and [49681] to the 5.6 branch.
Fixes #51827.
Built from https://develop.svn.wordpress.org/branches/5.6@49682


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-22 16:06:06 +00:00
Andrew Ozz 1e60ec94af External Libraries: Update jQuery Migrate to 3.3.2.
Props mgol, azaozz.
Merges [49649] to the 5.6 branch.
Fixes #50564.
Built from https://develop.svn.wordpress.org/branches/5.6@49667


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-19 09:31:13 +00:00
Sergey Biryukov e5de7dafd1 Site Health: Add missing i18n for the App Passwords documentation link.
Follow-up to [49334].

Props tai.
Reviewed by TimothyBlynJacobs, SergeyBiryukov.
Merges [49650] to the 5.6 branch.
Fixes #51815.
Built from https://develop.svn.wordpress.org/branches/5.6@49652


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-18 15:57:05 +00:00