Commit Graph

18800 Commits

Author SHA1 Message Date
Joe McGill 059b79ddce WordPress 5.9.9.
Built from https://develop.svn.wordpress.org/branches/5.9@57433


git-svn-id: http://core.svn.wordpress.org/branches/5.9@56939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 16:33:10 +00:00
audrasjb 9596df5b2a WordPress 5.9.8.
Built from https://develop.svn.wordpress.org/branches/5.9@56891


git-svn-id: http://core.svn.wordpress.org/branches/5.9@56402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:38:01 +00:00
desrosj 3260e33888 WordPress 5.9.7.
Built from https://develop.svn.wordpress.org/branches/5.9@55836


git-svn-id: http://core.svn.wordpress.org/branches/5.9@55348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:17:03 +00:00
audrasjb 49a67fb33a Grouped backports to the 5.9 branch.
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.
- I18N: Introduce sanitization function for locale.
- Editor: Ensure block comments are of a valid form.
- Editor: Remove shortcode support from block templates.

Merges [55760-55764] to the 5.9 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.


Built from https://develop.svn.wordpress.org/branches/5.9@55774


git-svn-id: http://core.svn.wordpress.org/branches/5.9@55286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:23:17 +00:00
audrasjb 34ecc74ff9 WordPress 5.9.5.
Built from https://develop.svn.wordpress.org/branches/5.9@54580


git-svn-id: http://core.svn.wordpress.org/branches/5.9@54134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:45:04 +00:00
desrosj 461062cab7 WordPress 5.9.4.
Built from https://develop.svn.wordpress.org/branches/5.9@53988


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:26:04 +00:00
Sergey Biryukov 0a6525bc80 Grouped backports to the 5.9 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.

Built from https://develop.svn.wordpress.org/branches/5.9@53964


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:25:05 +00:00
Sergey Biryukov 657e931145 Block Patterns: Update the value used for keywords.
Patterns on the [https://wordpress.org/patterns/ Pattern Directory] can have keywords for better discoverability while searching. The way these are stored [69548ff1f0 was changed from a taxonomy to meta value], but the `/wp/v2/pattern-directory/patterns` endpoint was still pulling from that old value.

The correct property to use for this field is `meta.wpop_keywords`, which returns a single string with comma-separated keywords.

Follow-up to [51021].

Props ryelle, TimothyBlynJacobs.
Merges [53665] to the 5.9 branch.
See #56126.
Built from https://develop.svn.wordpress.org/branches/5.9@53674


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-06 16:20:08 +00:00
desrosj 6437203f09 Build/Test Tools: Update 3rd party GitHub Actions.
This updates the following GitHub Actions to the latest versions:

- `actions/checkout`
- `actions/cache`
- `actions/github-script`
- `actions/setup-node`
- `codecov/codecov-action`
- `ramsey/composer-install`
- `shivammathur/setup-php`
- `slackapi/slack-github-action`

Various inline documentation updates are also included.

Merges [53112], [53581], [53582], and [53592] to the 5.9 branch.
See #55652.
Built from https://develop.svn.wordpress.org/branches/5.9@53596


git-svn-id: http://core.svn.wordpress.org/branches/5.9@53184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-30 16:28:05 +00:00
Sergey Biryukov ea97d7797b Build/Test Tools: Pass GitHub Actions environment variables to the Docker container.
This ensures that `WP_UnitTestCase::skipOnAutomatedBranches()` has access to the `GITHUB_REF` and `GITHUB_EVENT_NAME` variables, so that some tests can be skipped when appropriate.

Additionally, account for renaming the `master` branch to `trunk` in November 2021.

Follow-up to [40241], [46999], [49264], [49267], [51868].

Merges [53349] to the 5.9 branch.
Fixes #55668.
Built from https://develop.svn.wordpress.org/branches/5.9@53351


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-04 11:46:06 +00:00
Sergey Biryukov 8cd8ef6c75 Security: Add 5.9 to the list of versions receiving security updates.
Merges a part of [52448] to the 5.9 branch.
Built from https://develop.svn.wordpress.org/branches/5.9@53348


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-03 21:43:04 +00:00
Sergey Biryukov f1520bb093 Post WordPress 5.9.3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@53081


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 20:04:03 +00:00
audrasjb 80d4f5a4e2 WordPress 5.9.3.
Built from https://develop.svn.wordpress.org/branches/5.9@53079


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 19:08:04 +00:00
audrasjb 276e7dd132 Help/About: Update the About page with the correct number of bugfixes for WP 5.9.3.
See #55473.

Built from https://develop.svn.wordpress.org/branches/5.9@53078


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 14:44:04 +00:00
audrasjb 66f905f284 Help/About: Update the About page for WordPress 5.9.3.
Props audrasjb, SergeyBiryukov.
Fixes #55473.

Built from https://develop.svn.wordpress.org/branches/5.9@53073


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-05 10:34:03 +00:00
audrasjb 5a24eb1195 Post WordPress 5.9.3 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@53032


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 21:43:01 +00:00
audrasjb 2317a454f3 WordPress 5.9.3 RC1.
Built from https://develop.svn.wordpress.org/branches/5.9@53031


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 21:22:04 +00:00
audrasjb 64a00287bc Update WordPress packages for 5.9.3.
Updated packages:

- @wordpress/block-directory@3.0.29
- @wordpress/block-library@6.0.28
- @wordpress/customize-widgets@2.0.29
- @wordpress/edit-post@5.0.29
- @wordpress/edit-site@3.0.29
- @wordpress/edit-widgets@3.1.24

Props mamaduka, jorgefilipecosta.
Fixes #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53030


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-30 11:30:25 +00:00
audrasjb 035d87d2a1 Customizer: When a block theme is active, add an information about Site Editor in the Customizer.
This change adds an information notice to the customizer when a block theme is active and the customizer is also available (for example when a plugin activates it), to encourage people to use the Site Editor for the best full site customization experience.

Props ironprogrammer, antonvlasenko, Clorith, audrasjb, psmits1567, tobifjellner, costdev, webcommsat, joedolson, pbiron.
Merges [53024] and [53025] to the 5.9 branch.
Fixes #54939.

Built from https://develop.svn.wordpress.org/branches/5.9@53026


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 20:18:17 +00:00
audrasjb d5e8989d9b Filesystem API: Include the `ssh-ed25519` public key signature algorithm as an alternative to `ssh-rsa`.
The `ssh-rsa` signature algorithm is disabled by default as of OpenSSH 8.8, which breaks SSH2 uploads in WordPress on modern systems. `ssh-ed25519` is one of the suggested alternatives, supported since OpenSSH 6.5.

References:

- OpenSSH 8.2 release notes
- OpenSSH 8.7 release notes
- OpenSSH 8.8 release notes

Follow-up to [8865].

Props richybkreckel, dd32, SergeyBiryukov.
Merges [52807] to the 5.9 branch.
Fixes #52409.

Built from https://develop.svn.wordpress.org/branches/5.9@53022


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 16:30:12 +00:00
audrasjb e4f842c54f Administration: Do not specify menu order for the Widgets menu when the active theme is a block theme.
When using a block theme that declares Widgets support, it's better to not specify a menu order for the Widgets menu to avoid conflicts between menu items order.

Props Rufus87, ironprogrammer, audrasjb, hellofromTonya, davidbaumwald.
Merges [53020] to the 5.9 branch.
Fixes #54916.

Built from https://develop.svn.wordpress.org/branches/5.9@53021


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 16:24:16 +00:00
audrasjb 5a1ccc718b Editor: Fix broken asset URLs when using WP outside of the regular directory
Both CSS and JS URLs were totally broken for some of the newer blocks (e.g. the navigation block in the 2022 theme) when WP core is outside of the current directory using a different prefix.

Props gziolo, SergeyBiryukov, pgpagely, Mamaduka.
Merges [52939] to the 5.9 branch.
Fixes #55311.

Built from https://develop.svn.wordpress.org/branches/5.9@53019


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 15:43:18 +00:00
audrasjb 400f27879d Editor: Change location of block support styles in `wp_head`.
Backports changes from https://github.com/WordPress/gutenberg/pull/39164.

Props ndiego, alexstine, cbravobernal, mamaduka.
Merges [53015] to the 5.9 branch.
See #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53017


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 13:49:16 +00:00
audrasjb 22061e9c67 Editor: Use `wp_unique_id()` instead of `uniqid()` to generate CSS class names.
Backports changes from https://github.com/WordPress/gutenberg/pull/38891.
See https://github.com/WordPress/gutenberg/issues/38889.

Props westonruter, mamaduka.
Merges [53012] to the 5.9 branch.
See #55474.

Built from https://develop.svn.wordpress.org/branches/5.9@53013


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 13:09:06 +00:00
audrasjb e67da61255 Themes: Avoid undefined variable warning on `get_svg_filters()`.
This change fixes an undefined variable warning thrown when `duotone` color setting was set to null in Block Themes `theme.json` file.

Follow-up to [52768].

Props aliakseyenkaihar, audrasjb, rafiahmedd.
Merges [52791] to the 5.9 branch.
Fixes #55241.

Built from https://develop.svn.wordpress.org/branches/5.9@53009


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 09:12:06 +00:00
audrasjb 0bed07cb1c Themes: Hide block themes live preview link following installation.
Prevent the Customizer/Live Preview button from showing for installed block themes when on the theme installation page.

Props antonvlasenko, costdev, ironprogrammer.
Merges [52819] to the 5.9 branch.
Fixes #54878.

Built from https://develop.svn.wordpress.org/branches/5.9@53008


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-29 08:55:13 +00:00
audrasjb 07855db0ee Media: Make `get_post_galleries()` only return galleries.
This change makes sure only gallery content is returned by `get_post_galleries()`. It fixes an issue where non gallery block content was also returned by the function.

Props BinaryMoon, costdev, glendaviesnz.
Merges [52797] to the 5.9 branch.
Fixes #55203.

Built from https://develop.svn.wordpress.org/branches/5.9@53006


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-28 20:52:06 +00:00
audrasjb 7d4e457cd4 Editor: Optimize preload paths for post and site editors.
This patch optimizes preload paths in post and site editors so that they match the real requests:

- Remove the `/` preload as the payload is very big and the response is not needed on any critical path.
- Modify the preloaded path for `/wp/v2/taxonomies` so that it corresponds to what `loadTaxonomyEntities` requests. After Gutenberg PR 37685 was merged to core, these preloads need to be modified to use `context=view` instead of `context=edit`.
- Modify the `/wp/v2/users/me` path so that it matches the real request (no query params).
- Add a preload of `/wp/v2/settings` because it is requested on critical path (editor boot). Site editor already preloads this, the changeset is only adding it to the post editor.

This is related to Gutenberg PR 39256 which introduces compatibility code to modify the preload paths with a filter, when the Gutenberg plugin is active.
See https://github.com/WordPress/gutenberg/pull/39256.

Props jsnajdr, noisysocks.
Merges [52995] to the 5.9 branch.

Built from https://develop.svn.wordpress.org/branches/5.9@53005


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-28 20:31:06 +00:00
Sergey Biryukov 2f4d408f06 Post WordPress 5.9.2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52920


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-11 02:33:03 +00:00
audrasjb 7e32b3f2b0 WordPress 5.9.2.
Built from https://develop.svn.wordpress.org/branches/5.9@52874


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:02:03 +00:00
audrasjb 2753058dfa External Librairies: Update jQuery.query to version 2.2.3.
This updates the "jquery-query" library from version 2.1.7 to 2.2.3.

Props jorbin, peterwilsoncc, xknown, audrasjb, jorgefilipecosta.
Merges [52844] to the 5.9 branch.

Built from https://develop.svn.wordpress.org/branches/5.9@52845


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 19:20:05 +00:00
audrasjb fcf2500f49 Themes: Remove the Live Preview link when installing a block theme from a zip archive.
This changeset removes the Live Preview link for block-based themes when installing for a zip archive, since the customizer is disabled by default for block themes.

Follow-up to [52353].

Props alanjacobmathew, hellofromTonya, antonvlasenko, ironprogrammer.
Fixes #54578.

Built from https://develop.svn.wordpress.org/branches/5.9@52803


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-26 08:29:03 +00:00
Sergey Biryukov 95c433c8cd Post WordPress 5.9.1 version bump.
The 5.9 branch is now 5.9.2-alpha.
Built from https://develop.svn.wordpress.org/branches/5.9@52788


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 16:07:01 +00:00
audrasjb ef7f72daec WordPress 5.9.1.
Built from https://develop.svn.wordpress.org/branches/5.9@52786


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 15:17:04 +00:00
audrasjb d687a49c78 Help/About: Update the About page for WordPress 5.9.1.
Props hellofromTonya, audrasjb.
Fixes #55173.

Built from https://develop.svn.wordpress.org/branches/5.9@52785


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-22 11:05:07 +00:00
audrasjb 46da16fae1 Twenty Twenty-Two: Bump theme version to 1.1.
This change bumps the version of the Twenty Twenty-Two bundled theme in preparation for release with WordPress 5.9.1.

Props peterwilsoncc, petaryoast, audrasjb, SergeyBiryukov, rafiahmedd.
Merges [52781] to the 5.9 branch.
Fixes #55056.

Built from https://develop.svn.wordpress.org/branches/5.9@52782


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-21 21:15:04 +00:00
audrasjb 08e4416dd5 Post WordPress 5.9.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.9@52771


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 21:48:01 +00:00
audrasjb 2c2f8a21fd WordPress 5.9.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.9@52770


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 21:24:03 +00:00
hellofromTonya 614e78a804 Editor: Automatically apply global styles duotone filters to render in post editor.
Global styles duotone filters were not rendering in the post editor. This fixes that by adding `wp_global_styles_render_svg_filters` to the `in_admin_header` so it renders in the body before the editor.

Follow-up [52757].

Props ajlende, abhanonstopnewsuk.
Merges [52768] to the 5.9 branch.
Fixes #55190.
Built from https://develop.svn.wordpress.org/branches/5.9@52769


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 20:51:03 +00:00
hellofromTonya f98ee7b892 Options: Disable transients while installing.
Prevent the transient setters and getters from attempting to use the database table before they exist during the installation process. 

During installation transients now use the `wp_cache_*()` functions on all sites, including those without a persistent cache, to prevent database errors. The use of the caching functions stores the data in memory for the duration of the request to account for transient data that is used multiple times during installation.

Props dd32, audrasjb, tnolte, antonvlasenko, noisysocks, peterwilsoncc.
Merges [52694] to the 5.9 branch.
Fixes #54849.
Built from https://develop.svn.wordpress.org/branches/5.9@52767


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 19:52:59 +00:00
audrasjb a0cced6bba Editor: Update block editor packages for WordPress 5.9.1.
The following packages were updated:

- @wordpress/block-directory@3.0.27
- @wordpress/block-editor@8.0.17
- @wordpress/block-library@6.0.26
- @wordpress/components@19.2.3
- @wordpress/core-data@4.0.10
- @wordpress/customize-widgets@2.0.27
- @wordpress/e2e-tests@2.5.18
- @wordpress/edit-post@5.0.27
- @wordpress/edit-site@3.0.27
- @wordpress/edit-widgets@3.1.22
- @wordpress/editor@12.0.21
- @wordpress/format-library@3.0.23
- @wordpress/interface@4.1.18
- @wordpress/list-reusable-blocks@3.0.20
- @wordpress/nux@5.0.20
- @wordpress/reusable-blocks@3.0.23
- @wordpress/server-side-render@3.0.20
- @wordpress/widgets@2.0.23

Props Mamaduka.
Merges [52765] to the 5.9 branch.
See #55179.

Built from https://develop.svn.wordpress.org/branches/5.9@52766


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 19:42:26 +00:00
hellofromTonya 1a316fc555 Editor: Adds an additional check to guard against incompete presets.
Adds an additional guard to ensure the value of `$preset_metadata['value_key']` actually exists as a key in the `$preset` array. Fixes `Warning: Undefined array key` error. 

Intentionally adds the check into the existing `isset()` as it's native to PHP, more efficient, and a good pattern.

Follow-up [52049].

Props jeherve, swissspidy, sergeybiryukov, jrf.
Merges [52763] to the 5.9 branch.
Fixes #55161.
Built from https://develop.svn.wordpress.org/branches/5.9@52764


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 18:56:03 +00:00
hellofromTonya 93fbf22647 Script Loader: Prevent normalizing data URIs in `_wp_normalize_relative_css_links()`.
This prevents making data URIs as in `mask-image:url('data:image/svg+xml;utf8,<svg...` relative to the WordPress installation.

Props staatic.
Merges [52754] to the 5.9 branch.
See #54243.
Fixes #55177.
Built from https://develop.svn.wordpress.org/branches/5.9@52762


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 18:00:00 +00:00
Sergey Biryukov 5b69c32e30 Filesystem API: Use a temp folder for `Content-Disposition` files.
#38231 added support for files fetched remotely to have their filename defined by the host using the `Content-Disposition` header. This would then take priority over the existing temporary file name created with `wp_tempnam()` earlier in the process.

The change unintentionally omitted the temporary directory path used during uploads, since the `wp_tempnam()` function would have added it previously, so that files with this header ended up being stored in the WordPress root folder, or wp-admin folder, when triggered by WP_Cron or user interactions respectively.

This change makes sure the file path includes the temporary directory location when the header is used.

Follow-up to [51939].

Props antonynz, azouamauriac, Clorith.
Merges [52734] and [52760] to the 5.9 branch.
Fixes #55109.
Built from https://develop.svn.wordpress.org/branches/5.9@52761


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:44:00 +00:00
audrasjb affb772478 Editor: Backport Duotone fixes for 5.9.1.
This changeset is a backport for the following Gutenberg PRs:

- Fix duotone theme cache: https://github.com/WordPress/gutenberg/pull/36236
- Fix duotone render in non-fse themes gutenberg: https://github.com/WordPress/gutenberg/pull/37954
- Duotone: Allow users to specify custom filters gutenberg: https://github.com/WordPress/gutenberg/pull/38442

Props oandregal, scruffian, Mamaduka.
Merges [52757] to the 5.9 branch.
See #55179.

Built from https://develop.svn.wordpress.org/branches/5.9@52759


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:31:01 +00:00
audrasjb 0711ec9616 Docs: Typo corrections in `class-wp-theme-json` docblocks.
Props kebbet, hellofromtonya.
Merges [52692] to the 5.9 branch.
See #54729.

Built from https://develop.svn.wordpress.org/branches/5.9@52758


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 17:22:03 +00:00
hellofromTonya 18945d341b Editor: Grant only admins access to the "Navigation Menus" UI for block and non-block themes.
Restricts and grants access to only admin roles for the Navigation Menu UI screen, i.e. either directly through the URL wp-admin/edit.php?post_type=wp_navigation or via the Navigation block's "Manage menu" option (in the block's toolbar).

It resolves 2 issues:

- For non-block themes, fixes the issue where admins could not access the UI.
- For block themes, restricts access to only admin roles, i.e. non-admins no longer have access to the UI.

Non-admins will receive the "Sorry, you are not allowed to edit posts in this post type" error message.

Follow-up [52069], [52145], [52330], [52400].

Props ironprogrammer, costdev, noisysocks, talldanwp, hellofromTonya, manfcarlo, pyrobd.
Merges [52755] to the 5.9 branch.
Fixes #54889.
Built from https://develop.svn.wordpress.org/branches/5.9@52756


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 15:46:04 +00:00
jorgefilipecosta be639d98c5 Global Styles: Load the global styles before the theme styles in the editor.
This commit makes the site editor follow what we do in the front-end, where theme styles are loaded after global styles by default.

Props oandregal, ntsekouras.
Merges [52752] to the 5.9 branch.
Fixes #55188.
Built from https://develop.svn.wordpress.org/branches/5.9@52753


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 14:19:04 +00:00
jorgefilipecosta b9ccf1699b Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller if no styles exist.
There is a PHP warning in WP_REST_Global_Styles_Controller because we are assuming that every theme.json has styles property, which is not always the case.

Props ntsekouras.
Merges [52750] to the 5.9 branch.
Fixes #54900.
Built from https://develop.svn.wordpress.org/branches/5.9@52751


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 13:56:01 +00:00
jorgefilipecosta c8d6cfeed9 Script Loader: Improvements to the load block support styles mechanism.
This commit applies feedback given to commit 52741. It changes the new function name, the file where it is located, and improves its documentation and marks.

Follow-up to [52741].
Props hellofromtonya, swissspidy, oandregal.
Merges [52743] to the 5.9 branch.
See #55148.
Built from https://develop.svn.wordpress.org/branches/5.9@52748


git-svn-id: http://core.svn.wordpress.org/branches/5.9@52337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-17 13:13:01 +00:00