45803 Commits

Author SHA1 Message Date
Peter Wilson
a92f7b803a Tests: Replace the timezone used in date/time tests.
The `Europe/Kiev` timezone has been deprecated in PHP 8.2 and replaced with `Europe/Kyiv`.

The tests updated in this commit are testing the WordPress date/time functionality. They are **not** testing whether WP or PHP can handle deprecated timezone names correctly.

To ensure the tests follow the original purpose, the use of `Europe/Kiev` within these tests is now replaced with the `Europe/Helsinki` timezone, which is within the same timezone as `Europe/Kyiv`. This should ensure that these tests run without issue and test what they are supposed to be testing on every supported PHP version (unless at some point in the future `Europe/Helsinki` would be renamed, but that's a bridge to cross if and when).

Note: Separate tests should/will be added to ensure that relevant date/time related functions handle a deprecated timezone correctly, but that is not something ''these'' tests are supposed to be testing.

Follow-up to [45853], [45856], [45876], [45882], [45887], [45908], [45914], [46577], [46154], [46580], [46864], [46974], [54207].

Props jrf, costdev, SergeyBiryukov.
Merges [54217] to the 6.0 branch.
See #56468.


git-svn-id: https://develop.svn.wordpress.org/branches/6.0@54512 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-14 05:58:20 +00:00
Peter Wilson
c697da5a38 Security: Introduce strings to indicate support status.
Add strings for use in future maintenance/security releases to indicate the security support status of the version of WordPress.

Two strings are introduced:

* indicating the version of WordPress is not receiving security updates, and,
* indicating the version of WordPress will shortly stop receiving security updates.

This change does not make use of the strings, the purpose is to make them available to translators prior to dropping support of selected versions of WordPress.

Props costdev, chesio, robinwpdeveloper, desrosj, rudlinkon, mukesh27, sumitbagthariya16.
Merges [54322] to the 6.0 branch.
See #56532.



git-svn-id: https://develop.svn.wordpress.org/branches/6.0@54430 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-10 04:43:54 +00:00
Jonathan Desrosiers
97218bbfd3 Post WordPress 6.0.2 version bump.
The `6.0` branch is now `6.0.3-alpha`.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@54035 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 19:43:51 +00:00
Jonathan Desrosiers
db44bb9cbf WordPress 6.0.2.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53987 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 17:22:51 +00:00
Sergey Biryukov
fdf994035d Plugins: Escape output in error messages.
Props tykoted, paulkevan, peterwilsoncc.
Merges [53960] to the 6.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53963 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 15:19:08 +00:00
Sergey Biryukov
b33cc43b7b General: Ensure bookmark query limits are numeric.
Props paulkevan, xknown.
Merges [53959] to the 6.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53962 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 15:18:08 +00:00
Sergey Biryukov
f61e5ec2e5 Posts, Post Types: Escape output within the_meta().
Convert markup to entities when displaying on the front end. Deprecates `the_meta()` in favor of `get_post_meta()`.

Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.
Merges [53958] to the 6.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53961 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 15:17:21 +00:00
Sergey Biryukov
9da39a18bb Post WordPress 6.0.2 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53932 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 16:47:30 +00:00
Sergey Biryukov
7a99a76015 WordPress 6.0.2 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53931 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 16:22:16 +00:00
Sergey Biryukov
3afe021c2d Editor: Backport bug fixes from Gutenberg into Core for WP 6.0.2 RC.
This brings a new version of the Gutenberg code from the [https://github.com/WordPress/gutenberg/tree/wp/6.0 wp/6.0 branch] into core.

- @wordpress/block-directory@3.4.14
- @wordpress/block-editor@8.5.10
- @wordpress/block-library@7.3.14
- @wordpress/customize-widgets@3.3.14
- @wordpress/edit-post@6.3.14
- @wordpress/edit-site@4.3.14
- @wordpress/edit-widgets@4.3.14
- @wordpress/editor@12.5.10
- @wordpress/format-library@3.4.10
- @wordpress/reusable-blocks@3.4.10
- @wordpress/widgets@2.4.10

Props gziolo, SergeyBiryukov.
Merges [53929] to the 6.0 branch.
Fixes #56414.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53930 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 15:52:08 +00:00
Sergey Biryukov
52b1a515d6 Editor: Ensure get_block_templates() returns unique templates or template parts.
The function was using the `array_column()` PHP function on an array of objects, which works as expected on PHP 7 or later, but not on PHP 5.6.

This resulted in customized templates being listed multiple times on the Templates and Template Parts screens, and being repeatedly added between lists when switching between the screens.

The issue is now resolved by replacing `array_column()` with the `wp_list_pluck()` WordPress core function, which provides consistent behavior beetween PHP versions.

Reference: [https://github.com/php/php-src/blob/PHP-7.0.0/UPGRADING#L626 PHP 7.0 Upgrade Notes: array_column()].

Props uofaberdeendarren, antonvlasenko, ironprogrammer, jonmackintosh, costdev, hellofromTonya, swissspidy, rudlinkon.
Merges [53927] to the 6.0 branch.
Fixes #56271.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53928 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 14:54:57 +00:00
Sergey Biryukov
1e9ba11079 External Libraries: Update the Moment library to version 2.29.4.
This is a minor bug fix release.

Props dilipbheda, desrosj, jkfoiztmcjeikfp, audrasjb.
Merges [53662] and [53725] to the 6.0 branch.
Fixes #56402. See #56031.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53926 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 13:55:32 +00:00
Sergey Biryukov
bc48c587fd Help/About: Improve vertical alignment in the Additional Design Tools section.
This makes a transparent circle SVG smaller by removing empty space to match the height of other images in the same section, so that all three columns are aligned correctly.

Follow-up to [53339].

Props sabernhardt, weboccults, ironprogrammer, webcommsat, marybaum, oglekler.
Merges [53924] to the 6.0 branch.
Fixes #56210.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53925 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 13:48:07 +00:00
Sergey Biryukov
8aa91a417a Editor: Fix register_block_type does not recognise ancestor block setting.
When registering block through PHP, using `register_block_type` function, newly introduced `ancestor` block setting in `block.json` was not recognised. It worked though, when block is registered from JavaScript.

Props lovor, annezazu, gziolo.
Merges [53718] to the 6.0 branch.
Fixes #56184.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53923 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-23 13:30:46 +00:00
Jb Audras
bca5924f0a Themes: Allow remote pattern registration in theme.json when core patterns are disabled.
In 6.0 there is now a functionality that allows to register selected remote patterns (from the Pattern Directory) via `theme.json`. However, it requires to fully enable all core and remote patterns. This can be a blocker for user adoption.

Many theme authors want to have all core and remote patterns disabled by default using `remove_theme_support( 'core-block-patterns' )`. This changeset ensures they are serving only patterns relevant to their theme.

It removes theme support check from the function that registers remote patterns specified in `theme.json`. This allows theme authors to disable core patterns but then selectively register the ones they want from the Pattern Directory. If a theme author intentionally specifies patterns in `theme.json`, they probably intend for them to be present in the pattern inserter and the check is not required.

This change will make the Pattern Directory more appealing/usable from a theme author's perspective.

Props ndiego, ryelle, audrasjb.
Merges [53793] to the 6.0 branch.
Fixes #56112.


git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53903 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-17 21:12:44 +00:00
Jonathan Desrosiers
67023d0c66 Build/Test Tools: Add tag pattern matching for the testing NPM workflow.
This workflow was missed in [50298].

Merges [53737] to the 6.0 branch.
See #55652.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53738 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-20 18:54:23 +00:00
Sergey Biryukov
3a518382cb Docs: Correct @since tags introduced in WordPress 6.0.1.
The associated changes were backported to the 6.0 branch, so the version should be 6.0.1 instead of 6.1.0.

This affects:
* `@since` tag for the `block-templates` feature in `create_initial_theme_features()`.
* `@since` tag for the `show_on_front`, `page_on_front`, and `page_for_posts` options on the REST API settings endpoint.

Follow-up to [53590], [53661].

Props tommusrhodus, johnbillion.
Merges [53704] to the 6.0 branch.
Fixes #56225.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53705 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-15 16:00:25 +00:00
Sergey Biryukov
33760e329c Post WordPress 6.0.1 version bump.
The 6.0 branch is now 6.0.2-alpha.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53697 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-12 17:06:40 +00:00
Sergey Biryukov
c493b62c64 WordPress 6.0.1.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53695 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-12 16:11:31 +00:00
Sergey Biryukov
b187227880 Help/About: Update the About page for WordPress 6.0.1.
Fixes #56200.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53694 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-12 12:52:13 +00:00
Sergey Biryukov
9b105d92a4 Editor: Include user's name in the wp_refresh_post_lock() response.
This ensures that the post lock data returned by the Heartbeat API is consistent.

Previously, `wp_check_locked_posts()` was updated to return the name of the user currently editing the post, but the `wp_refresh_post_lock()` response did not get a similar change.

Follow-up to [53070].

Props nathan.noom.
Merges [53692] to the 6.0 branch.
Fixes #56197.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53693 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-11 18:20:04 +00:00
Sergey Biryukov
ac3de7c5b3 Post WordPress 6.0.1 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53668 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 16:43:47 +00:00
Sergey Biryukov
d8bca57634 WordPress 6.0.1 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53667 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 16:24:53 +00:00
Sergey Biryukov
a71bf79d64 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.

Props ryelle, TimothyBlynJacobs.
Merges [53665] to the 6.0 branch.
See #56126.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53666 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 16:03:10 +00:00
Sergey Biryukov
340966a8c1 Themes: Revert the change of theme preview width on Add Themes screen.
The intention was for the preview ratio to remain accurate for the user's screen size when the sidebar is open, but this appears to have caused unintended side effects to the preview alignment.

Follow-up to [52647].

Props superbthemescom, Presskopp.
Merges [53663] to the 6.0 branch.
Fixes #56097. See #54764.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53664 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 15:36:19 +00:00
Sergey Biryukov
42fe3a7b5b Themes: Register the block-templates theme feature.
This ensures the feature is included in the `theme_supports` REST API data for the active theme.

Follow-up to [48171].

Props grantmkin, TimothyBlynJacobs, addiestavlo.
Merges [53659] to the 6.0 branch.
Fixes #55681.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53661 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 15:02:03 +00:00
Sergey Biryukov
ec597e1d40 Editor: Update block editor packages for WordPress 6.0.1.
This brings a new version of the Gutenberg code from the [https://github.com/WordPress/gutenberg/tree/wp/6.0 wp/6.0 branch] into core.

Original PR from Gutenberg repository:
* #GB42131 Post Comments Form: Fix warning i18n

The following packages were updated:
* `@wordpress/block-directory` to `3.4.13`
* `@wordpress/block-library` to `7.3.13`
* `@wordpress/customize-widgets` to `3.3.13`
* `@wordpress/edit-post` to `6.3.13`
* `@wordpress/edit-site` to `4.3.13`
* `@wordpress/edit-widgets` to `4.3.13`

Props zieladam, bernhard-reiter, tobifjellner.
Merges [53657] to the 6.0 branch.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53658 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 14:38:19 +00:00
Peter Wilson
0df5fb8e9b Taxonomy: Fix caching issues in WP_Term_Query class.
Introduced [52836] when passing `child_of` or `pad_counts` parameters to `get_terms` or `WP_Term_Query` class, the array 
of terms received by the query, was not correctly cached. This change simplifies the logic in `WP_Term_Query` and 
ensures terms are correctly cached. This change also, improves performance, by only caching an array of term ids where 
possible.  

Additionally, the database version bump included in this patch is also required for #55890 to initialize the user count 
on single sites.

Props denishua, spacedmonkey, oztaser, peterwilsoncc, SergeyBiryukov, georgestephanis, jnz31, knutsp, mukesh27, costdev, 
tharsheblows.
Merges [53496] to the 6.0 branch.
Fixes #55837, #55890.

 --This line, and those below, will be ignored--

_M   .
M    src/wp-includes/class-wp-term-query.php
M    src/wp-includes/version.php
M    tests/phpunit/tests/term/getTerms.php


git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53650 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-05 00:07:48 +00:00
Sergey Biryukov
4bb333c506 Help/About: Add cache busting string to video thumbnail.
Append `?ver=6.0` to the image used for linking to the video to break the cache in browsers, proxy servers and on the CDN.

A new version of the image has been uploaded and replaced the file in the original location.

Props annezazu, critterverse, ryelle, costdev, ironprogrammer, dd32, peterwilsoncc.
Merges [53447] to the 6.0 branch.
Fixes #55808.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53649 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-04 18:36:32 +00:00
Sergey Biryukov
9dad4c7c1d Bundled Themes: Revert the Twenty Ten theme version to 3.6.
No functional changes were made to Twenty Ten during the WordPress 6.0 release cycle so the theme version bump is not needed. The "Tested up to" header change is maintained.

Follow-up to and partial revert of [53418].

Props desrosj, ravipatel, costdev, peterwilsoncc.
Merges [53448] to the 6.0 branch.
See #55810, #55754.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53648 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-04 18:29:57 +00:00
Sergey Biryukov
6007bde5cd Embeds: Remove Meetup as an oEmbed source since the related endpoint has been deprecated.
This changeset removes Meetup as an oEmbed source, since Meetup.com have deprecated their oEmbed endpoint. The block has already been removed from the editor, see #GB35085.

Props peterwilsoncc, audrasjb, swissspidy, SergeyBiryukov.
Merges [53540] and [53646] to the 6.0 branch.
Fixes #55997.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53647 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-04 18:24:46 +00:00
Sergey Biryukov
175f3088f1 Editor: Update block editor packages for WordPress 6.0.1.
This brings a new version of the Gutenberg code from the [https://github.com/WordPress/gutenberg/tree/wp/6.0 wp/6.0 branch] into core.

The following packages were updated:
* `@wordpress/block-directory` to `3.4.12`
* `@wordpress/block-editor` to `8.5.9`
* `@wordpress/block-library` to `7.3.12`
* `@wordpress/components` to `19.8.5`
* `@wordpress/customize-widgets` to `3.3.12`
* `@wordpress/edit-post` to `6.3.12`
* `@wordpress/edit-site` to `4.3.12`
* `@wordpress/edit-widgets` to `4.3.12`
* `@wordpress/editor` to `12.5.9`
* `@wordpress/format-library` to `3.4.9`
* `@wordpress/icons` to `8.2.3`
* `@wordpress/interface` to `4.5.6`
* `@wordpress/list-reusable-blocks` to `3.4.5`
* `@wordpress/nux` to `5.4.5`
* `@wordpress/plugins` to `4.4.3`
* `@wordpress/preferences` to `1.2.5`
* `@wordpress/reusable-blocks` to `3.4.9`
* `@wordpress/server-side-render` to `3.4.6`
* `@wordpress/widgets` to `2.4.9`

Props zieladam.
Merges [53644] to the 6.0 branch.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53645 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-04 12:08:32 +00:00
Sergey Biryukov
efead24c16 Editor: Register the Comments Query Loop block from metadata.
This ensures that the block title and description can be translated.

Follow-up to [53157].

Props cbravobernal, bernhard-reiter, adamziel, gziolo, peterwilsoncc, audrasjb, mukesh27, SergeyBiryukov.
Merges [53631] to the 6.0 branch.
Fixes #56093. See #55809.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53632 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-02 14:38:55 +00:00
Jonathan Desrosiers
c0f0dbdb9c 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`
- `shivammathur/setup-php`
- `slackapi/slack-github-action`

Various inline documentation updates are also included.

Merges [53581-53582], and [53592] to the 6.0 branch.
See #55652.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53595 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 16:24:58 +00:00
Sergey Biryukov
46636b484c Editor: Ensure only the main query is modified when resolving template for new posts.
This adds a check for the main query in `_resolve_template_for_new_post()` to fix a 404 response when resolving template for new posts or pages caused by the wrong query being modified.

Original PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/40799 #40799: Ensure only the main query is modified when resolving template for new posts]

Follow-up to [52316].

Props petitphp, zieladam, poena, ndiego, gziolo, kebbet, Mamaduka, manfcarlo.
Merges [53593] to the 6.0 branch.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53594 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 15:48:22 +00:00
Sergey Biryukov
b062f7bd0f REST API: Add missing options to the settings endpoint.
This adds the `show_on_front`, `page_on_front`, and `page_for_posts` options to the settings endpoint that were missed during WP 6.0 backports.

Related PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/38607 #38607 Page for Posts: Display notice in template panel]

Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov.
Merges [53588] and [53589] to the 6.0 branch.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53590 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-29 14:22:56 +00:00
Sergey Biryukov
a8c3fecf39 Editor: Add utility classnames back to blocks that have layout attributes specified.
[https://github.com/WordPress/gutenberg/issues/38719 In 5.9 these utility classnames were removed], which removed the ability for theme/plugin authors to assign their own custom CSS related to specific layout selections. This was mostly related to the Button block.

This commit adds these classes dynamically based on attributes, rather than saving them to the serialized content.

Original PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/41487 #41487 Add utility classnames back to blocks that have layout attributes specified]

Props glendaviesnz, peterwilsoncc, andrewserong, zieladam, matveb, samikeijonen.
Merges [53568] to the 6.0 branch.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53569 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-23 23:09:44 +00:00
Sergey Biryukov
0a6c37ceb0 Post WordPress 6.0 version bump.
The 6.0 branch is now 6.0.1-alpha.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53446 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-24 20:17:31 +00:00
Sergey Biryukov
3564881b32 WordPress 6.0.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53444 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-24 18:58:00 +00:00
Peter Wilson
03d65d4d78 Help/About: Finalise links on about page.
Wrap up about page for 6.0 release.

Props ryelle, mukesh27, hellofromTonya, SergeyBiryukov, peterwilsoncc.
Merges [53442] to the 6.0 branch.
Fixes #55775.



git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53443 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-24 00:17:41 +00:00
Sergey Biryukov
7216ec7e0e Upgrade/Install: Update $_old_files for 6.0.
Props hellofromTonya, JeffPaul, SergeyBiryukov.
Merges [53439] to the 6.0 branch.
Fixes #55794.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53440 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-23 17:02:51 +00:00
Kelly Choyce-Dwan
c56b33c1a4 Administration: Fix image overlap in Dashboard welcome panel.
Use longhand positioning properties (top, right, etc) so that the rtlcss build process can correctly adjust the layout for the RTL CSS.

Props ryelle, costdev, ironprogrammer, hellofromtonya.
Merges [53437] to the 6.0 branch.
Fixes #55793.



git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53438 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-23 16:53:02 +00:00
Tonya Mork
cff519be8e Build/Test Tools: Follow-up to r53432.
Removes comments global resets from base test case.

Follow-up to [53432].

See #54725,#55643.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53434 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-23 14:10:33 +00:00
Tonya Mork
16224b3353 Build/Test Tools: Add tests and fix comments odd/even instabilities (test leaks).
[53353] Add unit test for Comment Template block.

[53353] The odd / even class attribute global variables are causing issues in comments tests when a new test is added or an existing test is modified. To stabilize the odd / even comment tests, the comment global variables are added to the base test class' tear_down() using the same patterns as the other global resets. This change ensures each comment test starts at the same state. In doing so, the expected odd / even class attributes are no longer affected by previous tests, i.e. test leaks.

Also moves the comment globals reset from the base test case to the test's `tear_down()`. Why? To avoid risks to extenders' tests as it's too late in the 6.0 cycle for a dev note.

Follow-up to [53298], [53172], [53138].

Props bernhard-reiter, darerodz, gziolo, hellofromTonya, zieladam, peterwilsoncc.
Merges [53353] and [53430] to the 6.0 branch.
Fixes #54725,#55643.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53432 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-23 14:04:23 +00:00
Sergey Biryukov
af8a8ff40b Post WordPress 6.0 RC4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53425 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 16:47:34 +00:00
Sergey Biryukov
312a4362b3 WordPress 6.0 RC4
git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53424 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 16:21:25 +00:00
Sergey Biryukov
3fb01c3ec6 Bundled themes: Bump versions for WordPress 6.0 release.
Bump bundled theme version numbers in preparation for the WordPress 6.0 release. Each theme's _tested up to_ file header has been increased to indicate WordPress 6.0 support.

The new version numbers are:

* Twenty Ten: 3.7
* Twenty Eleven: 4.1
* Twenty Twelve: 3.7
* Twenty Thirteen*: 3.7
* Twenty Fourteen: 3.4
* Twenty Fifteen*: 3.2
* Twenty Sixteen*: 2.7
* Twenty Seventeen*: 3.0
* Twenty Nineteen: 2.3
* Twenty Twenty: 2.0
* Twenty Twenty-One: 1.6

An asterisk indicates the theme includes assets requiring a manual version bump, this is set to the reverse date format of the release day: `20220524`.

Follow up to [53286] in which the Twenty Twenty-Two theme version was bumped to 1.2.

Props peterwilsoncc, desrosj, costdev, mehedi890.
Merges [53418] to the 6.0 branch.
Fixes #55754.

git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53423 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 16:06:54 +00:00
Greg Ziółkowski
47143c7c27 Editor: Update WordPress packages for 6.0 RC 4
[53419] Editor: Fix opinionated block styles loading in editor

[53420] Editor: Update WordPress packages for 6.0 RC 4

[53421] Docs: Add missing documentation for fallback_gap_value param

Props SergeyBiryukov, zieladam, jffng.
Merges [53419], [53420] and [53421] to the 6.0 branch.
Fixes #55567.





git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53422 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 15:49:09 +00:00
Peter Wilson
c43931c060 Themes: Accept valid block themes.
Updates theme validation to accept block themes. This replaces the requirement for an `index.php` with a requirement for either an `index.php`, `/templates/index.html` or the deprecated `/block-templates/index.html`.

Validation is updated for theme uploads, within `WP_Theme::__construct` and `validate_current_theme()`. 

A block theme using the deprecated file structure is now included in the unit tests.

Props peterwilsoncc, sergeybiryukov, hellofromtonya, costdev, azaozz, gziolo, FlorianBrinkmann, Boniu91, aristath, poena, audrasjb.
Merges [53416] to the 6.0 branch.
Fixes #55682.


git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53417 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 00:59:55 +00:00
Peter Wilson
a1d10fecf5 Site Editor: Include style parameter in home template redirect.
When redirecting the site editor to the home template include the `style` querystring parameter if it is set. This ensures the style panel opens if the user expects it.

Props grantmkin, mamaduka, peterwilsoncc, gziolo.
Merges [53413] to the 6.0 branch.
Fixes #55752.



git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53415 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 00:17:16 +00:00