Commit Graph

45732 Commits

Author SHA1 Message Date
Aaron Jorbin 4178772843 Tag 6.0.8
Built from https://develop.svn.wordpress.org/tags/6.0.8@57983


git-svn-id: http://core.svn.wordpress.org/tags/6.0.8@57469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-04-10 20:01:14 +00:00
Aaron Jorbin bc56db179b Editor: Update packages with pinned react-resize-aware
Props isabel_brison, peterwilsoncc, johnbillion, sergeybiryukov, desrosj, davidbaumwald, jorbin.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@57468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-04-10 19:57:04 +00:00
John Blackbourn b6c6c35c1b WordPress 6.0.8.
Built from https://develop.svn.wordpress.org/branches/6.0@57964


git-svn-id: http://core.svn.wordpress.org/branches/6.0@57458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-04-09 15:33:07 +00:00
John Blackbourn 01dd77ef8a Editor: Update npm packages for the 6.0 branch.
Updates the editor npm packages to the latest patch versions.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@57451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-04-09 15:18:35 +00:00
Joe McGill b934f4596f WordPress 6.0.7.
Built from https://develop.svn.wordpress.org/branches/6.0@57434


git-svn-id: http://core.svn.wordpress.org/branches/6.0@56940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 16:35:13 +00:00
Aaron Jorbin 76807c3079 Grouped Backports to the 6.0 branch
- Install: When populating options, maybe_serialize instead of always serialize.
- Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 6.0 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@56901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 14:41:13 +00:00
audrasjb adbdf975bd WordPress 6.0.6.
Built from https://develop.svn.wordpress.org/branches/6.0@56892


git-svn-id: http://core.svn.wordpress.org/branches/6.0@56403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:39:14 +00:00
Joe McGill 173b1a5337 Grouped backports to the 6.0 branch.
- REST API: Limit `search_columns` for users without `list_users`.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Application Passwords: Prevent the use of some pseudo protocols in application passwords.
- Restrict media shortcode ajax to certain type
- REST API: Ensure no-cache headers are sent when methods are overriden.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 6.0 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@56381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:18:49 +00:00
desrosj 0dbb25a43d WordPress 6.0.5.
Built from https://develop.svn.wordpress.org/branches/6.0@55835


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:15:51 +00:00
desrosj 499d9012cf Editor: Restore shortcode support for block templates.
Follow up to [55761].

Props youknowriad, Clorith, desrosj, antpb, Otto42, johnbillion, jorbin, rmccue, timothyblynjacobs, mikeschroder, peterwilsoncc, audrasjb, matveb, noisysocks, xknown, ehtis, isabel_brison, talldanwp, gziolo, chriscct7, davidbaumwald.
Merges [55828] to the 6.0 branch.
See #58333.
Built from https://develop.svn.wordpress.org/branches/6.0@55831


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-20 04:07:08 +00:00
audrasjb 7a6bb60778 Grouped backports to the 6.0 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 6.0 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:20:13 +00:00
Sergey Biryukov c6419704d5 Tests: Adjust the expected mime type for WOFF fonts on PHP 8.1.12+.
As of PHP 8.1.12, which includes libmagic/file update to version 5.42, the expected mime type for WOFF files has changed to `font/woff`, so the type needs to be adjusted accordingly in `wp_check_filetype_and_ext()` tests.

References:
* [https://github.com/php/php-src/issues/8805 php-src: #8805: finfo returns wrong mime type for woff/woff2 files]
* [https://www.php.net/ChangeLog-8.php#8.1.12 PHP 8.1.12 changelog]

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

Props desrosj, jrf, costdev, SergeyBiryukov.
Merges [55462] to the 6.0 branch.
Fixes #56817.
Built from https://develop.svn.wordpress.org/branches/6.0@55497


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-09 14:06:14 +00:00
desrosj 42de2a0fda Build/Test Tools: Update several GitHub Actions.
This updates three GitHub Actions to their latest versions:
- `shivammathur/setup-php`
- `actions/cache`
- `wow-actions/welcome`

The welcome action now uses the `GITHUB_TOKEN` by default, so it no longer needs to be passed manually.

Merges [54651] and [55487] to the 6.0 branch.
See #56793, #57572.
Built from https://develop.svn.wordpress.org/branches/6.0@55490


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-08 16:50:11 +00:00
desrosj 3e749cc72b General: Update SVN `mergeinfo`.
Missed in [55482].

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-07 20:18:11 +00:00
desrosj cd5b78739a Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to `save-output` and `set-output` to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- backports some Docker environment related tooling updates for the sake of consistency across branches.

Merges [53628], [53636], [53736], [53737], [53895], [53940], [53947], [54039], [54096], [54108], [54293], [54297], [54313], [54342], [54343], [54371], [54373], [54511], [54649], [54650], [54674], [54678], [54750], [54851], [54852], [54856], [54921], [55152] to the 6.0 branch.
See 55702, #52708, #55652, #55652, #55700, #55652, #56407, #56407, #56528, #55652, #55652, #55652, #54695, #55652, #55652, #55652, #55652, #56820, #56820, #56816, #55652, #55652, #56820, #56793, #56793, #53841, #57148, #57572, #56682.
Built from https://develop.svn.wordpress.org/branches/6.0@55482


git-svn-id: http://core.svn.wordpress.org/branches/6.0@55015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-07 19:38:13 +00:00
Peter Wilson c084bac788 I18N: Add new strings to `about.php` for use with end-of-life updates.
This changeset adds two additional translation strings in the changelog file, for use when releasing the final version of WordPress on a particular branch.

Props peterwilsoncc, audrasjb, mukesh27.
Merges [55350] to the 6.0 branch.
Fixes #57216.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-21 02:39:12 +00:00
Peter Wilson f06f809b94 Built/Test tools, HTTP API: Refactor test for multiple location headers.
Remove wordpress.org as an external dependency testing `WP_HTTP::handle_redirects()`.

This refactors and reenables an existing test to call the `WP_HTTP::handle_redirects()` method directly with a mocked array of HTTP headers containing multiple location headers.

The test is moved from the external-http group to the http test group as it no longer makes an HTTP request.

Follow up to [54955].

Props SergeyBiryukov, dd32, peterwilsoncc.
Merges [54968] to the 6.0 branch.
Fixes #57306.
See #56793.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-12-15 04:22:12 +00:00
Sergey Biryukov 03b75fa993 Coding Standards: Correct the deprecation version for `_filter_query_attachment_filenames()`.
Follow-up to [54524], [54534].

Props jrf.
Merges [54878] to the 6.0 branch.
See #56791.
Built from https://develop.svn.wordpress.org/branches/6.0@54880


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-26 16:28:13 +00:00
Peter Wilson 95622d5d67 Media: Add `object-fit` to the allowed list of CSS properties.
This resolves a bug in Featured Image blocks where `object-fit` was being removed during the `render_callback`.

Props raduiason, pbiron, kebbet, SergeyBiryukov, bernhard-reiter, ironprogrammer, xknown, audrasjb, ckanderson22, ivanjeronimo, seriouslysenpai, davidbaumwald.
Merges [54675] to the 6.0 branch.
Fixes #56855.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-08 04:35:18 +00:00
Sergey Biryukov 26464b0f82 Post WordPress 6.0.3 version bump.
The 6.0 branch is now 6.0.4-alpha.
Built from https://develop.svn.wordpress.org/branches/6.0@54628


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 23:10:14 +00:00
Sergey Biryukov 4ecb2ec36b WordPress 6.0.3.
Built from https://develop.svn.wordpress.org/branches/6.0@54597


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 20:12:10 +00:00
audrasjb 558b045358 Help/About: Update the About page for WordPress 6.0.3.
Built from https://develop.svn.wordpress.org/branches/6.0@54577


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:40:26 +00:00
Sergey Biryukov f562f4f147 Users: Revert use of shared objects for current user.
Reverts [50790].

Props oztaser, ravipatel, dd32, costdev, SergeyBiryukov, tykoted, cu121, xknown.
Merges [54397] to the 6.0 branch.
Fixes #54984.
Built from https://develop.svn.wordpress.org/branches/6.0@54544


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 16:55:09 +00:00
desrosj b18094f7a8 Editor: Bump `@wordpress` packages for 6.0.3.
Package updates for bug fixes:

* @wordpress/block-directory: 3.4.15
* @wordpress/block-library: 7.3.15
* @wordpress/customize-widgets: 3.3.15
* @wordpress/edit-post: 6.3.15
* @wordpress/edit-site: 4.3.15
* @wordpress/edit-widgets: 4.3.15
* @wordpress/widgets: 2.4.11
Built from https://develop.svn.wordpress.org/branches/6.0@54543


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 16:24:32 +00:00
audrasjb 2466ee5c06 Widgets: Escape RSS error messages for display.
Props xknown, timothyblynjacobs, matveb, talldanwp.
Merges [54541] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:43:09 +00:00
audrasjb 2cd7afea5e Query: Validate relation in `WP_Date_Query`.
Props dd32, johnjamesjacoby, martinkrcho, ehtis, paulkevan, peterwilsoncc.
Merges [54530] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:39:09 +00:00
audrasjb 90ea336939 Mail: Reset PHPMailer properties between use.
Props xknown, martinkrcho, tykoted.
Merges [54529] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:37:09 +00:00
audrasjb 1143ae5afb REST API: Lockdown post parameter of the terms endpoint.
Props johnbillion, tykoted, timothyblynjacobs, peterwilsoncc, martinkrcho, ehtis.
Merges [54528] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:35:09 +00:00
audrasjb 40f6e7e89f Comments: Apply kses when editing comments.
Props davidbaumwald, xknown, peterwilsoncc, paulkevan.
Merges [54527] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:33:09 +00:00
audrasjb b80afdcddf Customize: Escape blogname option in underscores templates.
Props xknown, martinkrcho.
Merges [54526] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:31:09 +00:00
audrasjb c2b19edbdd Pings/trackbacks: Apply KSES to all trackbacks.
Props dd32, xknown, martinkrcho, peterwilsoncc.
Merges [54525] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:29:08 +00:00
audrasjb 2049ade675 Media: Refactor search by filename within the admin.
Props vortfu, xknown, peterwilsoncc, paulkevan.
Merges [54524] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:26:09 +00:00
audrasjb 4167f814bc Posts, Post types: Remove emails from post-by-email logs.
Props paulkevan, xknown, martinkrcho, peterwilsoncc.
Merges [54523] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:20:09 +00:00
audrasjb 84c1c0c7da General: Validate host on "Are you sure?" screen.
Props voldemortensen, xknown, peterwiloncc.

Merges [54522] to the 6.0 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:11:09 +00:00
audrasjb cb9fadb9f3 Posts, Post types: Apply KSES to post-by-email content.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 12:05:11 +00:00
Peter Wilson 8a85e9012a 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.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@54071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-14 06:00:13 +00:00
Peter Wilson d1b6543d22 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.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 04:45:16 +00:00
desrosj a9c0050f94 Post WordPress 6.0.2 version bump.
The `6.0` branch is now `6.0.3-alpha`.
Built from https://develop.svn.wordpress.org/branches/6.0@54035


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 19:45:12 +00:00
desrosj 3eeab6c06b WordPress 6.0.2.
Built from https://develop.svn.wordpress.org/branches/6.0@53987


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:24:15 +00:00
Sergey Biryukov e7a4fcd163 Plugins: Escape output in error messages.
Props tykoted, paulkevan, peterwilsoncc.
Merges [53960] to the 6.0 branch.
Built from https://develop.svn.wordpress.org/branches/6.0@53963


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:23:08 +00:00
Sergey Biryukov 29e2d8ff85 General: Ensure bookmark query limits are numeric.
Props paulkevan, xknown.
Merges [53959] to the 6.0 branch.
Built from https://develop.svn.wordpress.org/branches/6.0@53962


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:21:20 +00:00
Sergey Biryukov 24ccd7f9a3 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53961


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:20:12 +00:00
Sergey Biryukov 802c58df13 Post WordPress 6.0.2 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.0@53932


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 16:49:10 +00:00
Sergey Biryukov 1dfc0be4a7 WordPress 6.0.2 RC1.
Built from https://develop.svn.wordpress.org/branches/6.0@53931


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 16:24:09 +00:00
Sergey Biryukov 76684dfc4d 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53930


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 15:54:28 +00:00
Sergey Biryukov bd2cb12160 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53928


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 14:56:10 +00:00
Sergey Biryukov 40451dee2e 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53926


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 13:57:22 +00:00
Sergey Biryukov 4be05ba50f 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53925


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 13:50:08 +00:00
Sergey Biryukov 774cac198a 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.
Built from https://develop.svn.wordpress.org/branches/6.0@53923


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-23 13:32:12 +00:00
audrasjb a3dd623395 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.

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


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-17 21:14:11 +00:00