Commit Graph

33882 Commits

Author SHA1 Message Date
desrosj
44981a9b9c Editor: Update block editor packages to the latest patch releases.
This updates the block editor related npm dependencies to their latest patch versions ahead of WordPress 6.1.1.

For a full list of what’s included in this update, see 432ed388f8...6566f5fe9e.

Props aaronrobertshaw, ntsekouras, bernhard-reiter, ramonopoly, isabel_brison, andrewserong, get_dave, scruffian, andraganescu, talldanwp, mciampini, noisysocks, cbravobernal, bph, tyxla, ellatrix, czapla, mcsf, ironprogrammer, wildworks, peterwilsoncc, mamaduka, mikachan, spacedmonkey, cybr, youknowriad, alexstine, aristath, kevin940726, ndiego, 0mirka00, poena, joen, ryankienstra, desrosj, vtad, nithins53, audrasjb, kacper3355, sabernhardt.
Merges [54811] to the 6.1 branch.
Fixes #57038, #56818, #56955, #56923.
Built from https://develop.svn.wordpress.org/branches/6.1@54812


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 14:56:45 +00:00
desrosj
93cac07625 Menus: Apply menu-item-has-children class in sub-menus.
Ensure the `menu-item-has-children` class is added to sub-menu items when `wp_nav_menu()` is called with the `depth` parameter specified to a non-zero value.

Follow up to [54478].

Props davidvongries, fpodhorsky, hellofromTonya, innovext, larsmqller, LeonidasMilossis, mattkeys, mukesh27, nuvoPoint, ocean90, outrankjames, petitphp, SergeyBiryukov, sippis, webmandesign, peterwilsoncc.
Merges [54801] to the 6.1 branch.
Fixes #56946.
See #28620.
Built from https://develop.svn.wordpress.org/branches/6.1@54809


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 02:43:12 +00:00
desrosj
d8cd75854d Docs: Update comments in wp_nav_menu() tests per the documentation standards.
Includes:

- Fixing a few typos.
- Using the correct format for multi-line comments.
- Removing some comments that duplicate the assertion messages without providing any additional context. 

Follow-up to [54478].

Props SergeyBiryukov.
Merges [54741] to the 6.1 branch.
See #56792, #56946.
Built from https://develop.svn.wordpress.org/branches/6.1@54808


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 02:41:13 +00:00
desrosj
03af8a6e91 Media: Prevent decoding attribute corrupting JSON data.
Workaround `wp_img_tag_add_decoding_attr()` potentially breaking JavaScript and JSON data by limiting the addition of the decoding attribute to image tags using unescaped double quoted attributes `src` attributes.

Props rodricus, TimothyBlynJacobs, joelmadigan, mw108, adamsilverstein, flixos90, desrosj, mukesh27, peterwilsoncc.
Merges [54802] to the 6.1 branch.
Fixes #56969.
Built from https://develop.svn.wordpress.org/branches/6.1@54807


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 02:28:13 +00:00
desrosj
bc26f71bc1 I18N: Initialize textdomain registry in wp_load_translations_early().
Initialize `WP_Textdomain_Registry` in `wp_load_translations_early()`. This ensures the global `$wp_textdomain_registry` is set up prior to loading the translations.

Props azurseisme, TimothyBlynJacobs, costdev, ocean90, flixos90, swissspidy, peterwilsoncc.
Merges [54803] to the 6.1 branch.
Fixes #57051.
Built from https://develop.svn.wordpress.org/branches/6.1@54806


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 02:26:13 +00:00
Felix Arntz
15e9ecd961 Editor: Improve performance of WP_Theme_JSON class by reducing usage of expensive array functions.
In many scenarios array functions are more expensive than using simpler `for` or `foreach` loops.

This changeset results in roughly 4% faster `wp_head` execution time for both block themes and classic themes. While this may seem like a small win, it is a worthwhile enhancement and only one part of several other little performance tweaks which are being worked on to improve performance of `theme.json` parsing further.

Props aristath, desrosj, jrf, spacedmonkey.
Merges [54804] to the 6.1 branch.
Fixes #56974.
See #57067.

Built from https://develop.svn.wordpress.org/branches/6.1@54805


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-11 02:07:13 +00:00
Felix Arntz
309d6d1df8 Editor: Avoid running certain logic around theme.json parsing unnecessarily for classic themes.
Here's what it does:
* Do not load and parse `theme-i18n.json` schema if the theme does not have a `theme.json` file.
* Fix the variable caching layer around the theme's `theme.json` parsing so that a parent's theme `theme.json` is cached as well.
* Do not run a `WP_Query` for global styles for a user when the theme does not have a `theme.json`.

In a basic WordPress setup, this changeset improves `wp_head` execution time for classic themes by 10%, and overall response time for both block themes and classic themes by 4%. This may seem like a small win, but 4% reduced overall response time is actually quite a bit for one change, and it is worth mentioning that this is just one of several other little performance tweaks which are being worked on to improve performance of `theme.json` parsing further.

Props flixos90, manuilov, oandregal, peterwilsoncc, spacedmonkey.
Merges [54799] to the 6.1 branch.
Fixes #56945.

Built from https://develop.svn.wordpress.org/branches/6.1@54800


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 22:42:13 +00:00
Dominik Schilling
bf169434a2 I18N: Always pass $locale to load_textdomain().
In [53874] the optional `$locale` parameter was added to `load_textdomain()`. While most `load_textdomain()` calls in core were were updated, some were missed. Passing the original locale avoids the need to call `determine_locale()` by `load_textdomain()` which is used as a fallback.

Props ocean90, swissspidy, desrosj.
Merges [54797] to the 6.1 branch.
Fixes #57060.
Built from https://develop.svn.wordpress.org/branches/6.1@54798


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 19:44:13 +00:00
Dominik Schilling
0609e60b70 I18N: Revert [54795] from the 6.1 branch.
This will be added again once committed to trunk first.

See #57060.
Built from https://develop.svn.wordpress.org/branches/6.1@54796


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 19:36:12 +00:00
Dominik Schilling
78f74518f1 I18N : Always pass $locale to load_textdomain().
In [53874] the optional `$locale` parameter was added to `load_textdomain()`. While most `load_textdomain()` calls in core were were updated, some were missed. Passing the original locale avoids the need to call `determine_locale()` by `load_textdomain()` which is used as a fallback.

Props ocean90, swissspidy, desrosj.
Fixes #57060.
Built from https://develop.svn.wordpress.org/branches/6.1@54795


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 19:21:12 +00:00
desrosj
c5374bbbdc Canonical: Protect against error for term not exists queries.
Prevent term `NOT EXISTS` queries causing `redirect_canonical()` to throw a fatal error in PHP 8 and above, or a warning in earlier versions.

This ensures the `tax_query`'s `terms` property both exists and is countable before attempting to count it.

Props codesdnc, SergeyBiryukov, kadamwhite, costdev, miguelaxcar.
Merges [54785] to the 6.1 branch.
Fixes #55955.
Built from https://develop.svn.wordpress.org/branches/6.1@54793


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 16:25:14 +00:00
audrasjb
98d234aef0 Text Changes: Replace "Full site editing" with "Site Editor".
This changeset replaces the various occurrences of "Full site editing" with "Site Editor" as it is the new official name of the feature.
For more background about this change, see https://make.wordpress.org/updates/2022/11/04/site-editor-a-more-user-friendly-name/.

Props audrasjb, peterwilsoncc, poena, ocean90, Mamaduka, desrosj.
Fixes #57026.
Merges [54786], [54787], and [54788] to the 6.1 branch.

Built from https://develop.svn.wordpress.org/branches/6.1@54792


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 16:23:14 +00:00
hellofromTonya
c591c9f198 Update/Install: Deactivate Gutenberg plugin version older than 14.1.
Resolves a fatal error due to `get_template_hierarchy()` due to incompatible older Gutenberg versions.

[54269] introduced this new function for 6.1. This function was introduced in Gutenberg 13.9.0. However, it was not guarded to protect the plugin from when the function was loaded in Core. Gutenberg 14.1.0 added the `function_exists()` wrapper to protect the plugin from the fatal error.

Minimum compatible version:
This commit changes the Gutenberg minimum compatible version number to 14.1. For versions older than 14.1, the plugin will deactivate when upgrading Core to 6.1 or newer.

Function rename:
Past commits renamed the upgrade function by changing Core's version number. This commit renames the function to be generic, i.e. `_upgrade_core_deactivate_incompatible_plugins()` and adopts the `@since [reason]` strategy to track historical changes to the function. 

Follow-up to [54269], [52199], [52166], [52165], [51180].

Props namithjawahar, hellofromTonya, azaozz, desrosj, ironprogrammer.
Merges [54789] to the 6.1 branch.
Fixes #56985.
Built from https://develop.svn.wordpress.org/branches/6.1@54790


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 12:39:13 +00:00
Peter Wilson
7d0e04dfd6 Query: Prevent ID only queries erroring when starting the loop.
Ensure only full post objects are passed to `update_post_author_caches()` when called within `WP_Query::the_post()`. This prevents an error when starting the Loop for Queries initiated with a subset of fields or IDs only.

Props konyoldeath, dd32, lozula, TimothyBlynJacobs, spacedmonkey, mxbclang, peterwilsoncc.
Merges [54771] to the 6.1 branch.
Fixes #56948.


Built from https://develop.svn.wordpress.org/branches/6.1@54784


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 02:23:11 +00:00
Peter Wilson
59ff3d2bb1 Posts, Post Types: Revert get_page_by_title()'s use of WP_Query.
Revert to legacy database query in `get_pages_by_title()`. Due to the lack of `orderby` clause in the previous database query, it is not possible to gain consistent results by converting the function to a `WP_Query` wrapper.

Reverts [54271, 54242, 54234].

Props Bjorn2404, 10upsimon, dilipbheda, mukesh27, spacedmonkey, TimothyBlynJacobs, rjasdfiii, stentibbing, pbiron, pento.
Merges [54782] to the 6.1 branch.
Fixes #57039, #56991.
See #57041.


Built from https://develop.svn.wordpress.org/branches/6.1@54783


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 02:21:15 +00:00
desrosj
31e58d80b9 Coding Standards: Use consistent spelling for "cacheable" in WP_Query::get_posts().
Follow-up to [53941], [54768].

Props SergeyBiryukov.
Merges [57012] to the 6.1 branch.
See #57012.
Built from https://develop.svn.wordpress.org/branches/6.1@54781


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 18:37:14 +00:00
desrosj
0bf82203fd Query: Bypass caching for filtered SELECTs.
Bypass caching within `WP_Query` when the `SELECT` clause has been modified via a filter. This prevents both cache key collisions and the returning of incomplete or unexpected results when the `SELECT` clause has been modified by an extender.

Props pypwalters, claytoncollie, johnwatkins0, TimothyBlynJacobs, costdev, spacedmonkey, peterwilsoncc.
Merges [54768] to the 6.1 branch.
Fixes #57012.
Built from https://develop.svn.wordpress.org/branches/6.1@54780


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 18:34:12 +00:00
desrosj
e988ef55b7 Themes: Improve WP_Query call getting global styles.
Change `orderby` clause used within `WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles` to `date` to match the `WP_Query` documentation for the parameter.

Props miguelaxcar, johnbillion, JeffPaul, spacedmonkey, mxbclang, mukesh27.
Merges [54770] to the 6.1 branch.
Fixes #56900.
Built from https://develop.svn.wordpress.org/branches/6.1@54779


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 16:32:11 +00:00
desrosj
2855b38359 Themes: Re-order valid link pseudo classes.
Re-order the link pseudo classes to follow the long term LoVe (F)HA rule when set via `theme.json`.

In order that the CSS cascade behaves in a predictable manner, it's recommended that the selectors follow the order `:visited`, `:focus`/`:hover`, `:active`. As order affects the specificity, this ensures the interaction states override the visited states. CSS specificity is really quite beautiful, although complex.

Props mikachan, sabernhardt, davidbaumwald, mukesh27, Mamaduka, desrosj, peterwilsoncc.
Fixes #56928.
Built from https://develop.svn.wordpress.org/branches/6.1@54778


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 16:30:13 +00:00
Peter Wilson
73cd0d0c47 Query: Don't attempt caching if running a WP_User_Query before plugins_loaded.
In #55594 user meta caching was enabled by default when making a `WP_User_Query`. Previously, this was only enabled if a developer specifically queried for 'all_with_meta' 
fields. User meta caching is implemented using a pluggable function, `cache_users`. If a plugin runs a `WP_User_Query` before pluggable functions have been defined, this 
will now cause a fatal error.

In this commit, a `function_exists` check is introduced to avoid calling `cache_users` if it's not defined. Additionally, a `_doing_it_wrong` notice is issued if the 
`WP_User_Query::query` method is called before the 'plugins_loaded' hook.

Props carazo, subrataemfluence, oakesjosh, spacedmonkey, obenland, SergeyBiryukov, peterwilsoncc, TimothyBlynJacobs.
Merges [54766] to the 6.1 branch.
Fixes #56952.


Built from https://develop.svn.wordpress.org/branches/6.1@54773


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 02:01:14 +00:00
Felix Arntz
65a6a14ed6 Editor: Improve frontend performance for get_default_block_editor_settings().
The `wp_max_upload_size()` function can be expensive to call, especially for large sites or multisites. For the frontend usage of `get_default_block_editor_settings()` knowing the allowed upload size is typically unnecessary.

This changeset adds a condition so that `wp_max_upload_size()` is only called if the current user can actually `upload_files`. It keeps the data present when it is actually needed while avoiding the execution overhead when it is not needed.

Props janthiel, Clorith, flixos90, spacedmonkey.
Merges [54769] to the 6.1 branch.
Fixes #56815.

Built from https://develop.svn.wordpress.org/branches/6.1@54772


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-09 01:08:14 +00:00
desrosj
f34c1f10d1 Fix: Category specific templates always appear as not found.
According to the docs in developer.wordpress.org/reference/classes/wp_term_query/query WP_Term_Query:->query( string|array $query ) returns WP_Term[]|int[]|string[]|string, and we were using an inexistent object property terms making it always empty and look like the taxonomy did not exist.

Props mamaduka, mikachan, ockham, franz00.
Merges [54751] to the 6.1 branch.
Fixes #56902.
Built from https://develop.svn.wordpress.org/branches/6.1@54767


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-08 18:32:14 +00:00
Sergey Biryukov
5024b6b781 Coding Standards: Revert [54752] from the 6.1 branch.
This was supposed to be committed to trunk.

See #56791.
Built from https://develop.svn.wordpress.org/branches/6.1@54753


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-05 22:01:14 +00:00
Sergey Biryukov
d6ec0b0ae2 Coding Standards: Correct alignment in various files.
This fixes `Equals sign not aligned with surrounding statements` WPCS warnings, so that the output of `composer format` is clean.

Follow-up to [54445], [54476], [54494], [54522], [54652], [54687].

See #56791.

Built from https://develop.svn.wordpress.org/branches/6.1@54752


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-05 17:30:17 +00:00
desrosj
77dd4175a7 Twenty Twenty-One: Properly bump to version 1.7.
The theme version was missed in the relevant stylesheets in [54492].

This updates the last locations to allow 1.7 to be officially released.

Props @hellofromTonya, SergeyBiryukov.
Merges [54745] to the 6.1 branch.
See #56450.
Built from https://develop.svn.wordpress.org/branches/6.1@54746


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-02 03:17:12 +00:00
davidbaumwald
1d1a27971a Post WordPress 6.1 version bump.
The 6.1 branch is now 6.1.1-alpha.
Built from https://develop.svn.wordpress.org/branches/6.1@54744


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-02 02:38:15 +00:00
davidbaumwald
847229f290 WordPress 6.1.
Built from https://develop.svn.wordpress.org/branches/6.1@54742


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-02 00:03:20 +00:00
Sergey Biryukov
1e31240197 Upgrade/Install: Update $_old_files for 6.1.
Props davidbaumwald, SergeyBiryukov.
Reviewed by desrosj, SergeyBiryukov.
Merges [54730] to the 6.1 branch.
Fixes #56934.
Built from https://develop.svn.wordpress.org/branches/6.1@54737


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 22:58:14 +00:00
Sergey Biryukov
f4e379c341 Post WordPress 6.1 RC6 version bump.
Built from https://develop.svn.wordpress.org/branches/6.1@54736


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 22:12:10 +00:00
Sergey Biryukov
1c2e7ce15d WordPress 6.1 RC6.
Built from https://develop.svn.wordpress.org/branches/6.1@54735


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 21:48:11 +00:00
Sergey Biryukov
3fd42e6c72 Database: Revert [53575].
When using `'%%%s%%'` pattern with `$wpdb->prepare()`, it works on 6.0.3 but does not on 6.1-RC. Why? The inserted value is wrapped in quotes on 6.1-RC5 whereas it is not on <= 6.0.3.

With 6.1 final release tomorrow, more time is needed to further investigate and test. Reverting this changeset to restore the previous behavior.

This commit also adds a dataset for testing the `'%%%s%%'` pattern.

Props SergeyBiryukov, hellofromTonya, bernhard-reiter, desrosj, davidbaumwald, jorbin.
Reviewed by hellofromTonya, SergeyBiryukov.
Merges [54733] to the 6.1 branch.
Fixes #56933.
See #52506.
Built from https://develop.svn.wordpress.org/branches/6.1@54734


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 20:45:10 +00:00
Sergey Biryukov
e848e79e2f Tests: Temporarily skip WOFF file test on PHP 8.1.
A recent change to how WOFF files are processed in PHP 8.2 RC3 has caused a new test failure.

The tests was previously skipped on PHP 8.2, however, apparently after a `fileinfo` extension update, it started failing on PHP 8.1 too.

This commit adjusts the skipping condition to include PHP 8.1.

Follow-up to [54508], [54509].

Reviewed by desrosj, SergeyBiryukov.
Merges [54724] to the 6.1 branch.
See #56817.
Built from https://develop.svn.wordpress.org/branches/6.1@54732


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 20:28:12 +00:00
ryelle
df15e9fb00 Help/About: Add link to the 6.1 release video
Link the image and text to the new 6.1 release video on youtube. The video is currently private, but will be made public during the release party.

Props admwgn, critterverse, joen, annezazu, jpantani, laurlittle, cbringmann, kellychoffman, pablohoney, EidolonNight.
Reviewed by davidbaumwald.
Merges [54729] to the 6.1 branch.
See #56357.


Built from https://develop.svn.wordpress.org/branches/6.1@54731


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-31 15:20:13 +00:00
davidbaumwald
226776e4ee Post WordPress 6.1 RC5 version bump.
Built from https://develop.svn.wordpress.org/branches/6.1@54715


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-28 16:49:11 +00:00
davidbaumwald
c73acbf2d4 WordPress 6.1 RC5.
Built from https://develop.svn.wordpress.org/branches/6.1@54714


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-28 16:13:12 +00:00
antpb
fb2e1cfc1f Media: Reverts get_attached_file() changes for normalized Windows paths.
Based on feedback from network storage configurations there was a noticed slowdown due to the usage of the `path_join()` function. This needs more time to find a workaround.

Follow-up to [53934].
Props mreishus, SergeyBiryukov, desrosj, mikeschroder.
Reverts [53934] in the 6.1 Branch.
See #56924.

Built from https://develop.svn.wordpress.org/branches/6.1@54713


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-28 15:30:15 +00:00
davidbaumwald
cf0de36584 Post WordPress 6.1 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.1@54709


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-27 17:37:13 +00:00
davidbaumwald
4a6edf83db WordPress 6.1 RC4.
Built from https://develop.svn.wordpress.org/branches/6.1@54708


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-27 17:10:14 +00:00
davidbaumwald
b0d657e4ff Themes: Ensure custom global styles are imported properly.
This change removes caching of global styles for logged in users, allowing "wp_global_styles" custom post type to be imported completely, regardless of any previously cached data.  This change now relies on the lower-level native WP_Query cache invalidation methods for the global styles post type.

Follow-up to [52275], [54186].

Props anariel-design, bernhard-reiter, andrewserong, spacedmonkey, andraganescu, peterwilsoncc, oandregal, hellofromTonya.
Reviewed by hellofromTonya.
Merges [54706] to the 6.1 branch.
Fixes #56901.
Built from https://develop.svn.wordpress.org/branches/6.1@54707


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-27 16:39:11 +00:00
Bernhard Reiter
968dc8b8be Editor: Ensure global styles are rendered for third-party blocks.
This change ensures custom styles for all third-party blocks are rendered on the front end if assets are set to be loaded on a per-block basis.  Additionally, this change includes new unit tests to help prevent a similar bug in the future.

Props scruffian, aristath, poena, wildworks, ajlende, andraganescu, ndiego, gigitux, cbravobernal, ramonopoly, andrewserong, oandregal, hellofromTonya, davidbaumwald.
Merges [54703] to the 6.1 branch.
Fixes #56915.
Built from https://develop.svn.wordpress.org/branches/6.1@54705


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-27 15:58:13 +00:00
desrosj
0fdfa8f786 Docs: Add a @since note for object-fit support in safecss_filter_attr().
Follow-up to [54675].

Props peterwilsoncc, SergeyBiryukov, davidbaumwald.
Merges [54698] to the 6.1 branch.
See #56855.
Built from https://develop.svn.wordpress.org/branches/6.1@54700


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-27 13:47:15 +00:00
davidbaumwald
77ca44c456 Post WordPress 6.1 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/6.1@54697


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 20:33:15 +00:00
davidbaumwald
7bd82c4365 WordPress 6.1 RC3.
Built from https://develop.svn.wordpress.org/branches/6.1@54696


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 20:05:17 +00:00
davidbaumwald
7eae5691ec Help/About: Update About section images.
Switch to the CDN URLs for the images on the About page. Update the images used on Freedoms & Privacy to match the 6.1 design style.

Props richtabor, audrasjb, kebbet.
Reviewed by desrosj.
Merges [54690] to the 6.1 branch.
See #56357.
Built from https://develop.svn.wordpress.org/branches/6.1@54695


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 19:48:14 +00:00
davidbaumwald
73630df97f Editor: Update packages for 6.1 Release Candidate 3.
Package updates for bug and regression fixes since 6.1 RC 2:

- @wordpress/block-directory: 3.15.10
- @wordpress/block-editor: 10.0.9
- @wordpress/block-library: 7.14.10
- @wordpress/customize-widgets: 3.14.10
- @wordpress/edit-post: 6.14.10
- @wordpress/edit-site: 4.14.12
- @wordpress/edit-widgets: 4.14.10
- @wordpress/editor: 12.16.9
- @wordpress/format-library: 3.15.9
- @wordpress/reusable-blocks: 3.15.9
- @wordpress/widgets: 2.15.9

Original PRs from Gutenberg repository:

* [WordPress/gutenberg#45189 Gutenberg PR 45189] - Fix resizeable editor scrolling
* [WordPress/gutenberg#45234 Gutenberg PR 45234] - Reset background-image property for outline button style
* [WordPress/gutenberg#45161 Gutenberg PR 45161] - Table Block: Add a deprecation for the figcaption element class name
* [WordPress/gutenberg#45159 Gutenberg PR 45159] - File Block: Add a deprecation for the button element class name
* [WordPress/gutenberg#45169 Gutenberg PR 45169] - Video: Add a deprecation for the caption element
* [WordPress/gutenberg#45166 Gutenberg PR 45166] - Embed: Add deprecation for the caption element
* [WordPress/gutenberg#45173 Gutenberg PR 45173] - Gallery: Add a deprecation for captions in the gallery block
* [WordPress/gutenberg#44854 Gutenberg PR 44854] - Embed Block: Add support for Tumblr Dashboard URLs
* [WordPress/gutenberg#45074 Gutenberg PR 45074] - Post editor: Rename view to Preview
* [WordPress/gutenberg#45163 Gutenberg PR 45163] - Featured Image Block: Add missing output escaping
* [WordPress/gutenberg#45118 Gutenberg PR 45118] - [WP6.1] Site editor clips body background style

Follow-up to [54257], [54335], [54383], [54483], [54486], [54490], and [54632].

Props czapla, cbravobernal, ndiego, annezazu, davidbaumwald, desrosj, mikeschroder, hellofromtonya, ocean90.
Reviewed by desrosj, hellofromTonya, SergeyBiryukov.
Merges [54693] to the 6.1 branch.
See #56467.
Built from https://develop.svn.wordpress.org/branches/6.1@54694


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 19:19:41 +00:00
davidbaumwald
a2dd830e51 Query: Move cache key generation to its own method.
Introduce `WP_Query::generate_cache_key()` for generating the cache key used by the main database query.

This removes the need for a filter to test that cache keys do not include the WPDB placeholder causing unreachable cache keys. The tests now call `WP_Query::generate_cache_key()` directly.

The filter `wp_query_cache_key` is removed as a hard deprecation. The filter was not included in a stable release.

Follow up to [54685].

Props spacedmonkey, jorbin, azaozz, hellofromtonya, mukesh27, peterwilsoncc, desrosj, audrasjb, adamsilverstein, flixos90, davidbaumwald, joedolson, sergeybiryukov.
Reviewed by mikeschroder.
Merges [54685] to the 6.1 branch.
Fixes #56802.
Built from https://develop.svn.wordpress.org/branches/6.1@54692


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 18:33:16 +00:00
Dominik Schilling
dd9429d051 Twenty Twenty-Three: Merge the latest changes from GitHub.
For a full list of changes included, see the `twentytwentythree` repository on GitHub: 0f273d7874...e2005b0272.

Props kafleg, poena, mikachan, tobifjellner, aristath.
Merges [54686] to the 6.1 branch.
Fixes #56383.
Built from https://develop.svn.wordpress.org/branches/6.1@54691


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 15:02:15 +00:00
Bernhard Reiter
92f0e31460 Editor: Correctly apply Button block styles for classic themes
In [54358], styling for Button blocks that had been removed from classic themes was reintroduced. However, it was added with a global scope, whereas editor styles are usually added with a `.editor-styles-wrapper` selector, which makes them more specific.

This change modifies the way that classic theme styles are added so that they also get wrapped in an `.editor-styles-wrapper` selector to match specificity.

Furthermore, adjust specificity for some Button block related styling in the editor for the Twenty Twelve and Twenty Twenty themes.

Merges [https://github.com/WordPress/gutenberg/pull/44731 Gutenberg PR 44731] into trunk.

Follow-up to [54358].
Props scruffian, cbravobernal, sabernhardt, audrasjb.
Merges [54687] to the 6.1 branch.
See #56467.
Built from https://develop.svn.wordpress.org/branches/6.1@54688


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-25 13:45:16 +00:00
audrasjb
f2dce6114b Editor: Fix modal height responsiveness on link popup editor.
Fix the responsive breakpoint styles for short vertical viewports on the link popup modal. Follow-up to [54216].

Props sabernhardt, joedolson.
Fixes #53174.
Merges [54660] to the 6.1 branch.

Built from https://develop.svn.wordpress.org/branches/6.1@54684


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-24 21:43:14 +00:00
davidbaumwald
0e34d61860 Role/Capability: Revert the newly added update_role function for 6.1.
Based on feedback, this enhancement isn't quite ready.  Reverting [54213] for now to continue the work in the next cycle.

Follow-up to [54213].

Props manfcarlo, peterwilsoncc, SergeyBiryukov.
Reviewed by SergeyBiryukov.
Reverts [54213] in the 6.1 branch.
See #54572.
Built from https://develop.svn.wordpress.org/branches/6.1@54683


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-24 19:25:13 +00:00