Commit Graph

19370 Commits

Author SHA1 Message Date
Sergey Biryukov
bb5f476908 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53693


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-11 18:22:22 +00:00
Sergey Biryukov
d6d3444b17 Post WordPress 6.0.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.0@53668


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 16:45:12 +00:00
Sergey Biryukov
c9dbe5b053 WordPress 6.0.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.0@53667


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 16:26:14 +00:00
Sergey Biryukov
bee2e5e52c 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53666


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 16:05:11 +00:00
Sergey Biryukov
1579b5d2e0 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53664


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 15:38:12 +00:00
Sergey Biryukov
b6003661d6 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53661


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 15:04:12 +00:00
Sergey Biryukov
731b5c08bd 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53658


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 14:40:30 +00:00
Peter Wilson
dcc970fc76 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

Built from https://develop.svn.wordpress.org/branches/6.0@53650


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-05 00:09:13 +00:00
Sergey Biryukov
403a1ee7e7 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53649


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-04 18:38:15 +00:00
Sergey Biryukov
4ac819aebb 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53648


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-04 18:31:13 +00:00
Sergey Biryukov
862dffa381 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53647


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-04 18:26:14 +00:00
Sergey Biryukov
636debbcc4 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53645


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-04 12:10:37 +00:00
Sergey Biryukov
898f1066c8 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53632


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-02 14:40:12 +00:00
desrosj
9b5a6ac000 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53595


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-30 16:26:12 +00:00
Sergey Biryukov
96f502bfaa 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53594


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-30 15:50:12 +00:00
Sergey Biryukov
bdfebd0105 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53590


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-29 14:24:14 +00:00
Sergey Biryukov
f4df4293b4 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53569


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-23 23:11:10 +00:00
Sergey Biryukov
ddc0b2434e Post WordPress 6.0 version bump.
The 6.0 branch is now 6.0.1-alpha.
Built from https://develop.svn.wordpress.org/branches/6.0@53446


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-24 20:19:12 +00:00
Sergey Biryukov
eeeaeb98bc WordPress 6.0.
Built from https://develop.svn.wordpress.org/branches/6.0@53444


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-24 18:59:15 +00:00
Peter Wilson
9e63e99a3d 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.


Built from https://develop.svn.wordpress.org/branches/6.0@53443


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-24 00:19:18 +00:00
Sergey Biryukov
dce34573ae Upgrade/Install: Update $_old_files for 6.0.
Props hellofromTonya, JeffPaul, SergeyBiryukov.
Merges [53439] to the 6.0 branch.
Fixes #55794.
Built from https://develop.svn.wordpress.org/branches/6.0@53440


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-23 17:04:14 +00:00
ryelle
a826d9e50c 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.


Built from https://develop.svn.wordpress.org/branches/6.0@53438


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-23 16:55:13 +00:00
hellofromTonya
6da9fd24e9 Build/Test Tools: Follow-up to r53432.
Removes comments global resets from base test case.

Follow-up to [53432].

See #54725,#55643.
Built from https://develop.svn.wordpress.org/branches/6.0@53434


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-23 14:12:08 +00:00
hellofromTonya
f09e937ad4 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53432


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-23 14:06:14 +00:00
Sergey Biryukov
48c2a75622 Post WordPress 6.0 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.0@53425


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 16:49:10 +00:00
Sergey Biryukov
795bcce594 WordPress 6.0 RC4
Built from https://develop.svn.wordpress.org/branches/6.0@53424


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 16:23:10 +00:00
Sergey Biryukov
f8001c5b1e 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53423


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 16:08:14 +00:00
gziolo
1d7e2f9bdf 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.




Built from https://develop.svn.wordpress.org/branches/6.0@53422


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 15:51:26 +00:00
Peter Wilson
2011bb9093 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.

Built from https://develop.svn.wordpress.org/branches/6.0@53417


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 01:01:14 +00:00
Peter Wilson
5541f90c38 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.


Built from https://develop.svn.wordpress.org/branches/6.0@53415


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-20 00:19:20 +00:00
ryelle
94a29bade1 Help/About: Ensure about page shows current header.
Add a query string parameter to the about page header images to ensure the cache is broken in browsers and CDNs.

Props ryelle.
Merges [53409] to the 6.0 branch.
Fixes #55750.


Built from https://develop.svn.wordpress.org/branches/6.0@53412


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-18 15:42:15 +00:00
Sergey Biryukov
acd0c4329f Post WordPress 6.0 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/6.0@53407


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-17 16:38:27 +00:00
Sergey Biryukov
829c54b81a WordPress 6.0 RC3
Built from https://develop.svn.wordpress.org/branches/6.0@53406


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-17 16:13:23 +00:00
gziolo
347a117b37 Editor: Update WordPress packages for 6.0 RC 3
[53402] Theme: Use a better method to determine the theme name during export

[53403] Editor: Update WordPress packages for 6.0 RC 3

[53404] Editor: Return additional block patterns to server-generated settings

Props SergeyBiryukov, scruffian, davidbaumwald, jeremyfelt, zieladam, ndiego, jsnajdr, peterwilsoncc, johnstonphilip.
Merges [53402], [53403] and [53404] to the 6.0 branch.
Fixes #55567.


Built from https://develop.svn.wordpress.org/branches/6.0@53405


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-17 15:43:41 +00:00
hellofromTonya
1af74a4629 Editor: Use stricter assertions in comment template tests.
Backport of the remaining Comment Template block tests from Gutenberg:

* `assertEquals()` replaced with `assertSameSetsWithIndex()`.
* assertion's argument order changed to ensure expected and then actual.

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

Props bernhard-reiter.
Merges [53388] to the 6.0 branch.
Fixes #55708.
Built from https://develop.svn.wordpress.org/branches/6.0@53389


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 21:42:08 +00:00
Sergey Biryukov
c52fb4abf9 Post WordPress 6.0 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.0@53387


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 18:04:10 +00:00
Sergey Biryukov
d9b3f05bc0 WordPress 6.0 RC2
Built from https://develop.svn.wordpress.org/branches/6.0@53386


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 17:30:09 +00:00
ryelle
83ec312628 Administration: Update design of the Dashboard welcome panel.
This updates the panel to match the 6.0 About page styles, with the 6.0 graphic changing color based on the selected admin color scheme.

Props fcoveram, critterverse, joedolson, SergeyBiryukov.
Merges [53383] to the 6.0 branch.
Fixes #55532.


Built from https://develop.svn.wordpress.org/branches/6.0@53385


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 17:10:09 +00:00
ryelle
22a6198eb8 Help/About: Update the About section for 6.0.
Switch the images to use the s.w.org CDN. Update the font style and spacing on the About page. Update the header images for Credits, Freedoms, and Privacy.

Props fcoveram, peterwilsoncc, SergeyBiryukov.
Merges [53382] to the 6.0 branch.
Fixes #55434.


Built from https://develop.svn.wordpress.org/branches/6.0@53384


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 16:58:08 +00:00
hellofromTonya
b873fd1377 Editor: Update WordPress packages for 6.0 RC 2.
[53377] Included cherry-picked commits from the Gutenberg plugin that fix bugs discovered after WordPress 6.0 RC 1.

[53378] Includes cherry-picked commit from the Gutenberg plugin that fix a bug discovered just before WordPress 6.0 RC 2.

Props zieladam, ndiego, kebbet, hellofromTonya.
Merges [53377] and [53378] to the 6.0 branch.
Fixes #55567.

Built from https://develop.svn.wordpress.org/branches/6.0@53381


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 16:22:27 +00:00
Sergey Biryukov
0bb6a7c175 Media: Remove error suppression in wp_filesize().
Replace error suppressing in `wp_filesize()` with a `file_exists()` check before calling the native PHP `filesize()` function.

Follow up to [52837].

Props Cybr, johnbillion, spacedmonkey, antpb, azouamauriac, ironprogrammer, mukesh27, costdev, audrasjb, dlh, peterwilsoncc.
Merges [53372] to the 6.0 branch.
Fixes #55678.
See #49412.
Built from https://develop.svn.wordpress.org/branches/6.0@53380


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 16:12:08 +00:00
Sergey Biryukov
f7c8a72b6b Query: Restore late compact() call for the posts_clauses_request filter.
This addresses a backward compatibility break where `posts_join_request` and other filters were applied, but their results were subsequently discarded and earlier values were used instead.

Follow-up to [52974], [53175].

Props 5um17, johnbillion, peterwilsoncc, hellofromTonya, SergeyBiryukov.
Merges [53370] and [53375] to the 6.0 branch.
Fixes #55699.
Built from https://develop.svn.wordpress.org/branches/6.0@53379


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 16:09:11 +00:00
Peter Wilson
f5ddcf6c76 Users: Allow any DB field to be returned by WP_User_Query.
Restore behaviour of `fields` parameter in `WP_User_Query` to allow developers to specify any database field to be returned either individually or as part of a subset. Add these fields to the documentation.

When a subset of `fields` includes the `id` paramater, include it in the results in both upper and lowercase to maintain backward compatibility.

Follow up to [53327].

Props dd32, pbearne, kraftbj, peterwilsoncc, SergeyBiryukov.
Merges [53362,53373] to the 6.0 branch.
Fixes #53177.

Built from https://develop.svn.wordpress.org/branches/6.0@53374


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-10 05:53:10 +00:00
Peter Wilson
821cd18d54 Quick/Bulk Edit: Additional tests for showing taxonomies.
Additional tests to ensure taxonomies show in the quick/bulk edit froms based on the `show_in_quick_edit` setting rather than the the `show_ui` setting.

Follow up to [52841,31307].

Props figureone, costdev, audrasjb.
Merges [53368] to the 6.0 branch.
Fixes #49701.


Built from https://develop.svn.wordpress.org/branches/6.0@53369


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-09 00:53:09 +00:00
Peter Wilson
3ab07afe02 Script Loader: Fix i18n edge case breaking dependencies.
Prevent concatenation of scripts if the text domain is defined to ensure the dependency order is respected.

This accounts for an edge case in which replacing a core script via a plugin and a lack of translations (eg, for a US English site) could cause the JavaScript files to be ordered incorrectly.

Follow up to [52937].

Props audrasjb, boniu91, chaion07, costdev, hellofromtonya, jsnajdr, mukesh27, ndiego, ugyensupport, SergeyBiryukov.
Merges [53360,53366] to the 6.0 branch.
Fixes #55628.


Built from https://develop.svn.wordpress.org/branches/6.0@53367


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-09 00:03:18 +00:00
Peter Wilson
afa1841d32 Quick/Bulk Edit: Remove duplicate HTML IDs.
Rename `#inline-edit-legend` to avoid duplicate HTML IDs. These have been renamed `#quick-edit-legend` and `#bulk-edit-legend` for the quick and bulk editors respectively.

This HTML ID is not required by the quick editor duplicated via JavaScript so is removed as part of the duplication process.

Follow up to [53096].

Props azaozz, costdev, greglone, hellofromtonya, ironprogrammer, joedolson, sabernhardt, SergeyBiryukov, audrasjb.
Merges [53352] to the 6.0 branch.
Fixes #55575.
See #35483.

Built from https://develop.svn.wordpress.org/branches/6.0@53361


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-07 03:10:13 +00:00
John Blackbourn
25fc443da5 Build/Test Tools: Allow the local development environment to run on Apple M1 machines without requiring local configuration changes.
The `amd64/mysql` and `amd64/mariadb` official images from Docker are compatible with x86 running on the ARM64v8 architecture of M1 machines.

Merges [53358] to the 6.0 branch.

Fixes #52356

Built from https://develop.svn.wordpress.org/branches/6.0@53359


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-06 17:27:14 +00:00
audrasjb
974c591ce3 Help/About: Add link to 6.0 Field Guide, fix missing placeholder in string.
Follow-up to [53339].

Props audrasjb, ryelle.
Merges [53354] to the 6.0 branch.
See #55434.

Built from https://develop.svn.wordpress.org/branches/6.0@53356


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-05 22:03:13 +00:00
Sergey Biryukov
1aed9d14c0 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 6.0 branch.
Fixes #55668.
Built from https://develop.svn.wordpress.org/branches/6.0@53350


git-svn-id: http://core.svn.wordpress.org/branches/6.0@52939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-04 11:44:55 +00:00
Sergey Biryukov
61f74edbb3 Security: Update the Security Policy to include WordPress 6.0.
Built from https://develop.svn.wordpress.org/trunk@53342


git-svn-id: http://core.svn.wordpress.org/trunk@52931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-05-03 17:34:09 +00:00