Commit Graph

30205 Commits

Author SHA1 Message Date
Sergey Biryukov 6ae20f561e Filesystem API: Make sure to only call `fread()` on non-empty files in the PclZip library.
This avoids a fatal error on PHP 8 caused by passing a zero value to `fread()` as the `$length` argument, which must be greater than zero.

Props yakimun, fierevere, jrf, DavidAnderson, SergeyBiryukov.
Merges [50355] to the 5.6 branch.
Fixes #52018.
Built from https://develop.svn.wordpress.org/branches/5.6@50356


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-16 18:48:01 +00:00
desrosj 5669d987a2 Build/Test Tools: Run automated testing when tags are created.
This expands the list of events that triggers automated testing to include tags.

It also refines the matched version ranges for several workflows.

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


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-12 17:31:58 +00:00
desrosj 7e5e2a9d3a Build/Test Tools: Merge several automated testing improvements to the 5.6 branch.
This merges several refinements to GitHub Action workflow files to the 5.6 branch.

It also includes [49836], which added the ability to replace `mysql` with `mariadb` when using the local Docker environment to ensure consistency of the tools across branches.

Props johnbillion.
Merges [49781-49784,49786,49836,49938,50268,50285] to the 5.6 branch.
See #50401.
Built from https://develop.svn.wordpress.org/branches/5.6@50296


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-12 14:55:01 +00:00
desrosj fbcb15876e Build/Test Tools: Change the version of NodeJS tested on Windows to 14.
Merges [49782] to the 5.6 branch.
See #50401.
Built from https://develop.svn.wordpress.org/branches/5.6@50198


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:50:58 +00:00
desrosj 4ae31d77a1 Build/Test Tools: Fix tests after [50186].
This removes a test assertion defending against version ranges in the `node` value in `package.json` files. This is now supported.

Props peterwilsoncc.
Merges [50192] to the 5.6 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.6@50193


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:40:02 +00:00
desrosj 8554914aef Build/Test Tools: Pin NodeJS 14.x in the `.nvmrc` file for the 5.6 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.6@50187


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 02:59:01 +00:00
desrosj 4dd299f775 Build/Test Tools: Specify a version range within `engines` for `node` and `npm`.
This makes it more clear what versions of `node` and `npm` will successfully build WordPress.

Props dd32, mkaz.
Merges [50185] to the 5.6 branch.
Fixes #52455. See #51749.
Built from https://develop.svn.wordpress.org/branches/5.6@50186


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 02:50:58 +00:00
desrosj 8cfd634243 Build/Test Tools: Replace node-sass with Dart Sass
Switch the Sass implementation used by Grunt to sass (the Dart version), since LibSass & node-sass have been deprecated.

Additionally, this updates the `uglify-js` dependency.

Merges [50126] and [50176] to the 5.6 branch.
See #51763, #51801.
Built from https://develop.svn.wordpress.org/branches/5.6@50184


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 02:23:18 +00:00
desrosj 30561a3c9e Post WordPress 5.6.1 version bump.
The 5.6 branch is now 5.6.2 alpha.
Built from https://develop.svn.wordpress.org/branches/5.6@50180


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-03 21:33:59 +00:00
desrosj ba872ff3c0 WordPress 5.6.1.
Built from https://develop.svn.wordpress.org/branches/5.6@50178


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-03 21:09:58 +00:00
whyisjake d140645c95 Help/About: About page changes for 5.6.1.
Props ryelle, audrasjb.

Fixes #52346.

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


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-03 17:20:03 +00:00
Peter Wilson 06b29ed7f6 Build/Test Tools: Update built files committed to src following [50023].
See #51801, #52341.


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


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-03 01:55:02 +00:00
Sergey Biryukov d47aadaaff Tests: Set up the plugin download in multisite plugin tests to come locally.
This brings consistency between single site and multisite in REST API plugin installation tests.

Previously, multisite tests were unnecessarily downloading the plugin from WordPress.org on each test run, causing external HTTP requests and leading to failures in case of a timeout.

Follow-up to [48242], [49491], [49913].

Merges [49951] to the 5.6 branch.
See #51669.
Built from https://develop.svn.wordpress.org/branches/5.6@50085


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-30 10:40:59 +00:00
Sergey Biryukov dc34d22c36 Tests: Disable update checks while running REST API plugin installation tests.
This prevents external HTTP requests that are not required for the tests in question and may interfere with the results in case of a timeout.

Follow-up to [48242], [49491].

Merges [49913] to the 5.6 branch.
See #51669.
Built from https://develop.svn.wordpress.org/branches/5.6@50083


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-30 10:37:59 +00:00
desrosj 4713b6b932 Post WordPress 5.6.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.6@50064


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-28 19:43:58 +00:00
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