Commit Graph

51790 Commits

Author SHA1 Message Date
Weston Ruter
38214e40aa Plugins: Restore line break between the filter links row and the plugin cards in the Featured view.
Follow-up to [60528].

Props mukesh27, sajib1223, TobiasBg, narenin, sabernhardt, westonruter.
See #63723.
Fixes #64337.

Built from https://develop.svn.wordpress.org/trunk@61353


git-svn-id: http://core.svn.wordpress.org/trunk@60665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-05 05:50:32 +00:00
Weston Ruter
1d029e933d Mail: Add missing embeds key for the wp_mail_succeeded action's $mail_data param.
Follow-up to [60698].

Props iflairwebtechnologies, SirLouen, johnbillion.
See #28059.
Fixes #64348.

Built from https://develop.svn.wordpress.org/trunk@61352


git-svn-id: http://core.svn.wordpress.org/trunk@60664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-05 01:40:30 +00:00
Sergey Biryukov
3f6e89409e Upgrade/Install: Add missing file to the $_old_files array.
Follow-up to [60490], [61338].

Props WFMattR, sajib1223, davidbaumwald, mukesh27, SergeyBiryukov.
Fixes #64336.
Built from https://develop.svn.wordpress.org/trunk@61351


git-svn-id: http://core.svn.wordpress.org/trunk@60663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-04 23:08:32 +00:00
Sergey Biryukov
ba8227c121 Database: Further correct MariaDB version check in wpdb::has_cap().
On older PHP versions, MariaDB version is reported with the `5.5.5-` prefix, e.g. `5.5.5-10.6.24-MariaDB`.

This includes PHP 8.0.15 or earlier, as well as PHP 8.1.0—8.1.2, which was not accounted for previously.

This commit updates the condition for removing the `5.5.5-` prefix to include PHP 8.1.0—8.1.2.

Follow-up to [54384].

Props maximumsoftware, hbhalodia, SergeyBiryukov.
Fixes #64332.
Built from https://develop.svn.wordpress.org/trunk@61349


git-svn-id: http://core.svn.wordpress.org/trunk@60661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-03 20:54:33 +00:00
Weston Ruter
0d8aa03d93 Block Editor: Move Block Patterns API functions to block-patterns.php.
Follow-up to [48156].

Props anukasha, dhiraj0901, swissspidy, palak678, madhavishah01.
See #50445.
Fixes #64234.

Built from https://develop.svn.wordpress.org/trunk@61348


git-svn-id: http://core.svn.wordpress.org/trunk@60660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-03 19:47:33 +00:00
Weston Ruter
9c36fe9b4d General: Leverage DOMParser to implement wp.sanitize.stripTags().
Developed in https://github.com/WordPress/wordpress-develop/pull/10536

Follow-up to [60907].

Props hbhalodia, dmsnell, westonruter.
See #48054.
Fixes #64274.

Built from https://develop.svn.wordpress.org/trunk@61347


git-svn-id: http://core.svn.wordpress.org/trunk@60659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-03 18:09:33 +00:00
jonsurrell
9d0d7c1b18 HTML API: Ensure correct encoding of modified class names.
Some class names with HTML character references could be mishandled, for example:
- Failure to remove an existing class like `&` with `::remove_class( '&' )`
- Double-encoding of an existing class like `&` after a modification, becoming `&`

The second case manifested after double-encoding prevention was removed from `::set_attribute()` in [60919].

Developed in https://github.com/WordPress/wordpress-develop/pull/10591.

Props jonsurrell, dmsnell.
Fixes #64340.

Built from https://develop.svn.wordpress.org/trunk@61346


git-svn-id: http://core.svn.wordpress.org/trunk@60658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-03 17:27:31 +00:00
dmsnell
5503765994 Block Processor: Remove use of NumberFormatter from test suite.
The Block Processor tests call `NumberFormatter` for generating its
error messages, but in environments lacking the `intl` extension this
led to crashes while running the tests.

This patch reworks the tests so that they avoid calling
`NumberFormatter` so that the tests run on more diverse setups.

Developed in https://github.com/WordPress/wordpress-develop/pull/10576
Discussed in https://core.trac.wordpress.org/ticket/64329

Follow-up to [60939].

Props desrosj, ellatrix, peterwilsoncc, westonruter.

See #64329.

Built from https://develop.svn.wordpress.org/trunk@61342


git-svn-id: http://core.svn.wordpress.org/trunk@60654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-01 23:44:35 +00:00
davidbaumwald
f2897d2fc5 Upgrade/Install: Update the $_old_files array for 6.9.
Props SergeyBiryukov, davidbaumwald.
Fixes #64320.

Built from https://develop.svn.wordpress.org/trunk@61338


git-svn-id: http://core.svn.wordpress.org/trunk@60650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-01 16:45:38 +00:00
Sergey Biryukov
db8d425e41 Notes: Avoid incrementing comment_count when notes are resolved or reopened.
Follow-up to [60987].

Props hbhalodia, wildworks, shimotomoki, gulamdastgir04, JeffPaul, ellatrix, SergeyBiryukov.
Fixes #64325.
Built from https://develop.svn.wordpress.org/trunk@61336


git-svn-id: http://core.svn.wordpress.org/trunk@60648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-01 15:33:32 +00:00
desrosj
770a273694 Bundled Themes: Bump theme versions for release with 6.9.
Changes have been made to each and every default theme during the 6.9 release cycle. This bumps the theme versions as follows to prepare for releasing in coordination with WordPress 6.9:

- Twenty Ten: `4.5`
- Twenty Eleven: `5.0`
- Twenty Twelve: `4.7`
- Twenty Thirteen: `4.5`
- Twenty Fourteen: `4.4`
- Twenty Fifteen: `4.1`
- Twenty Sixteen: `3.7`
- Twenty Seventeen: `4.0`
- Twenty Nineteen: `3.2`
- Twenty Twenty: `3.0`
- Twenty Twenty-One: `2.7`
- Twenty Twenty-Two: `2.1`
- Twenty Twenty-Three: `1.6`
- Twenty Twenty-Four: `1.4`
- Twenty Twenty-Five: `1.4`

Props shailu25, desrosj, mukesh27, sabernhardt, wildworks, umeshsinghin.
Fixes #64069.
Built from https://develop.svn.wordpress.org/trunk@61329


git-svn-id: http://core.svn.wordpress.org/trunk@60641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-01 00:44:31 +00:00
desrosj
9109fd4b6a Media: Adjustments for official HEIF/HEIC support in added in PHP 8.5.
Now that a version of `imagick` with support for PHP 8.5 has been released and the containers maintained by the project for the local development environemnt have been updated to include it, there are some new PHP 8.5 compatibility issues that have surfaced related to HEIF/HEIC image format.

PHP 8.5 added support for the HEIF/HEIC image format in `getimagesize()`. To properly support this in a cross-version way, a few changes are necessary.

Since [58849], WordPress has supported this format and the `IMAGETYPE_HEIC` constant was introduced as a placeholder until proper support was added in PHP. Since that has now happened, this constant needs to be changed to contain a value of `20` instead of `99`, and the name upstream was added as `IMAGETYPE_HEIF`. The constant in Core is being changed to match those included in PHP.

The implementation for this image format in `getimagesize()` also follows a similar pattern to that of AVIF where additional information such as the image `bits` and `channels` are also returned. This additional information is causing unit tests to fail. The tests have been updated to account for different versions of PHP returning a different level of detail.

Props westonruter, skithund, johnbillion, adamsilverstein.
Fixes #64322.
Built from https://develop.svn.wordpress.org/trunk@61328


git-svn-id: http://core.svn.wordpress.org/trunk@60640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-01 00:36:32 +00:00
ryelle
aac4fee3da Help/About: Add the final images to the About page.
Follow-up to [61204].

Props ryelle, fcoveram, davidbaumwald, jasmussen, jorbin, karmatosed, parinpanjari, sabernhardt.
Fixes #63941.


Built from https://develop.svn.wordpress.org/trunk@61327


git-svn-id: http://core.svn.wordpress.org/trunk@60639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-30 19:24:37 +00:00
Weston Ruter
5a94066473 General: Add wp_get_archives_args filter to wp_get_archives().
Developed in https://github.com/WordPress/wordpress-develop/pull/10552

Props jeherve, westonruter.
Fixes #64304.

Built from https://develop.svn.wordpress.org/trunk@61326


git-svn-id: http://core.svn.wordpress.org/trunk@60638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-30 17:41:34 +00:00
Sergey Biryukov
588188b2c6 Options, Meta APIs: Avoid bypassing the option_page_capability_options filter.
This ensures that the filter is available when `wp-admin/options.php` is accessed directly.

Follow-up to [13627], [17986], [25372].

Props amibe.
Fixes #58761.
Built from https://develop.svn.wordpress.org/trunk@61325


git-svn-id: http://core.svn.wordpress.org/trunk@60637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-30 15:16:33 +00:00
John Blackbourn
01db8ebedc Options, Meta APIs: Revert additional request validity handling that was added to the /wp/v2/settings REST API route. This change needs more work to account for URL query parameters used in place of body data.
This reverts [60357] and [60301].

See #41604
Built from https://develop.svn.wordpress.org/trunk@61324


git-svn-id: http://core.svn.wordpress.org/trunk@60636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-30 11:26:30 +00:00
Weston Ruter
58465aa777 Script Loader: Emit notices when enqueueing a script, style, or script module with missing dependencies.
Developed in https://github.com/WordPress/wordpress-develop/pull/10545

Follow-up to [60999].

Props deepakprajapati, westonruter.
See #63486.
Fixes #64229.

Built from https://develop.svn.wordpress.org/trunk@61323


git-svn-id: http://core.svn.wordpress.org/trunk@60635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-30 00:56:32 +00:00
Weston Ruter
e4e4eeb291 Docs: Improve accuracy of wp_enqueue_classic_theme_styles() description.
Developed in https://github.com/WordPress/wordpress-develop/pull/10565

Follow-up to [59980], [54687], [54358].

Props manhphucofficial, wildworks, sabernhardt, iflairwebtechnologies, westonruter.
See #61892, #64224.
Fixes #64317.

Built from https://develop.svn.wordpress.org/trunk@61322


git-svn-id: http://core.svn.wordpress.org/trunk@60634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-29 19:39:30 +00:00
Sergey Biryukov
47f76234da Login and Registration: Remove redundant login URL at the end of new user notification.
This became unnecessary (and confusing) after the plaintext password was removed from the email, and the URL to set a new password was added directly above in WordPress 4.3.

Follow-up to [2872], [8058], [10931], [33023].

Props clayray, manhphucofficial, pratiklondhe, johnbillion, SergeyBiryukov.
Fixes #64316.
Built from https://develop.svn.wordpress.org/trunk@61321


git-svn-id: http://core.svn.wordpress.org/trunk@60633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-29 12:36:36 +00:00
wildworks
05044b0c62 Media: Remove required attribute from media uploader file input field.
This commit removes the `required` attribute from the file input element in the media uploader to avoid browser form validation issues and ensure that the `form` element is submitted correctly.

Props adamsilverstein, ellatrix, desrosj, huzaifaalmesbah, immeet94, krupajnanda, madhavishah01, parthvataliya, ravichudasama01, sabernhardt, wildworks, yagniksangani. 
Fixes #64305.
Built from https://develop.svn.wordpress.org/trunk@61320


git-svn-id: http://core.svn.wordpress.org/trunk@60632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-29 04:26:31 +00:00
Weston Ruter
ac741b7d81 Twenty Twenty: Fix typo and improve param description for twentytwenty_read_more_tag().
Follow-up to [61302].

Props sabernhardt.
See #64277, #64224.

Built from https://develop.svn.wordpress.org/trunk@61319


git-svn-id: http://core.svn.wordpress.org/trunk@60631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-28 21:24:33 +00:00
Sergey Biryukov
e996b2ed3f Twenty Twenty: Add missing variable names to some @param tags.
Follow-up to [46271], [46357], [51322].

Props huzaifaalmesbah.
See #64224.
Built from https://develop.svn.wordpress.org/trunk@61317


git-svn-id: http://core.svn.wordpress.org/trunk@60629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-28 20:10:38 +00:00
joedolson
c754a20955 Media: Fix 'remove' icon in Edit Gallery mode.
The structure change in [60806] effected the CSS for this icon. Adjust the CSS to target the new child container of the button.

Props maccyd, hbhalodia, joedolson.
Fixes #64269.
Built from https://develop.svn.wordpress.org/trunk@61316


git-svn-id: http://core.svn.wordpress.org/trunk@60628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-28 17:24:36 +00:00
Sergey Biryukov
f9f9ffb0e1 Twenty Eleven: Add missing variable names to some @param tags.
Follow-up to [25625].

Props huzaifaalmesbah.
See #64224.
Built from https://develop.svn.wordpress.org/trunk@61315


git-svn-id: http://core.svn.wordpress.org/trunk@60627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-27 23:14:24 +00:00
Sergey Biryukov
81f18bdbfe Twenty Ten: Add missing variable names to some @param tags.
Follow-up to [25627].

Props huzaifaalmesbah.
See #64224.
Built from https://develop.svn.wordpress.org/trunk@61314


git-svn-id: http://core.svn.wordpress.org/trunk@60626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-27 23:12:27 +00:00
Weston Ruter
45816337ec Cron API: Restore spawning cron at wp_loaded when using alternate WP Cron (ALTERNATE_WP_CRON).
Developed in https://github.com/WordPress/wordpress-develop/pull/10561

Follow-up to [60925].

Props karl94, peterwilsoncc, parthvataliya, johnbillion, westonruter.
See #63858.
Fixes #64315.

Built from https://develop.svn.wordpress.org/trunk@61313


git-svn-id: http://core.svn.wordpress.org/trunk@60625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-27 17:06:45 +00:00
Weston Ruter
c477348406 Upgrade/Install: Initialize plugin dependencies during ajax plugin search.
This ensures that a plugin's "Deactivate" link is disabled for dependency plugins during searches when a dependent plugin is active. It also ensures the "Requires" metadata is shown for dependent plugins, and the "Required by" metadata is shown for dependency plugins. 

Developed in https://github.com/WordPress/wordpress-develop/pull/10547

Follow-up to [57545].

Props hbhalodia, webdados, swissspidy, ravichudasama01.
See #22316.
Fixes #64288.

Built from https://develop.svn.wordpress.org/trunk@61312


git-svn-id: http://core.svn.wordpress.org/trunk@60624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-27 01:13:33 +00:00
Sergey Biryukov
0286bc8117 Filesystem API: Check for the correct result in some WP_Filesystem_FTPext methods.
This avoids a PHP warning when `::dirlist()` returns `false` under certain conditions:

> `Warning: Trying to access array offset on value of type bool in wp-admin/includes/class-wp-filesystem-ftpsockets.php on line 326`

Follow-up to [6779], [30678], [45226].

Props apermo, malt3, SergeyBiryukov.
Fixes #63474.
Built from https://develop.svn.wordpress.org/trunk@61311


git-svn-id: http://core.svn.wordpress.org/trunk@60623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-26 21:52:32 +00:00
wildworks
b6661d5528 Command Palette: Use HTML API for more reliable menu labels and URLs.
Replace regex-based HTML parsing with WP_HTML_Tag_Processor to properly extract text nodes from menu labels. This ensures only root-level text nodes are
collected.

Additionally, replace html_entity_decode() with WP_HTML_Decoder::decode_attribute() with the menu URL for consistent attribute decoding.

Follow-up to [61124], [61126], [61127], [61142].

Props: dmsnell, madhavishah01, peterwilsoncc, wildworks.
Fixes #64233.
Built from https://develop.svn.wordpress.org/trunk@61310


git-svn-id: http://core.svn.wordpress.org/trunk@60622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-26 04:28:39 +00:00
Weston Ruter
96f137f25d Twenty Eleven: Improve PHP docblocks with corrected descriptions, missing/corrected tags, and specific types.
Developed in https://github.com/WordPress/wordpress-develop/pull/10482

Props huzaifaalmesbah, dhruvang21, juanfra, sabernhardt, noruzzaman, ravichudasama01, westonruter.
See #64224.
Fixes #64211.

Built from https://develop.svn.wordpress.org/trunk@61309


git-svn-id: http://core.svn.wordpress.org/trunk@60621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 18:55:35 +00:00
Sergey Biryukov
1825c2a80d Coding Standards: Upgrade WPCS to version 3.3.0.
The impact on existing WordPress core code is expected to be minimal. The release updates some sniffs to account for changes in recent WordPress versions up to 6.9.0-RC2.

References:
* [https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.3.0 WPCS 3.3.0 release notes]
* [https://github.com/WordPress/WordPress-Coding-Standards/compare/3.2.0...3.3.0 Full list of changes in WPCS 3.3.0]

Follow-up to [56695], [56799], [57378], [57986], [60523].

Props jrf, dingo_d, garyj, rodrigosprimo, johnjago, SergeyBiryukov.
Fixes #64302.
Built from https://develop.svn.wordpress.org/trunk@61306


git-svn-id: http://core.svn.wordpress.org/trunk@60618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 14:45:35 +00:00
Weston Ruter
685fff8565 Coding Standards: Remove unreachable break statement after exit in switch.
This resolves static analysis warnings about an unreachable statement. 

Developed in https://github.com/WordPress/wordpress-develop/pull/8956

Follow-up to [41131].

Props justlevine, johnbillion.
See #64238.

Built from https://develop.svn.wordpress.org/trunk@61303


git-svn-id: http://core.svn.wordpress.org/trunk@60615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 05:46:31 +00:00
Weston Ruter
4617455730 Bundled Themes: Add missing @return tags and descriptions.
Developed in https://github.com/WordPress/wordpress-develop/pull/10533

Props huzaifaalmesbah, sabernhardt, palak678, westonruter.
See #64224.
Fixes #64277.

Built from https://develop.svn.wordpress.org/trunk@61302


git-svn-id: http://core.svn.wordpress.org/trunk@60614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 05:02:32 +00:00
ramonopoly
c252a2f896 Global Styles Revisions: Preserve block style variations in global styles revisions
When retrieving global styles revisions through the REST API, any block style variations (e.g., `styles.blocks.core/group.variations.my-variation`) are being removed during `WP_Theme_JSON` sanitization.

`WP_Theme_JSON` will only allow block style variations that are registered.

This means user modifications to any theme block style variations were being stripped from global styles revisions when retrieved via the REST API.

This commit registers theme-defined block style variations in `WP_REST_Global_Styles_Revisions_Controller::prepare_item_for_response` so that they can be properly parsed by `WP_Theme_JSON`, and therefore added to the global styles revisions REST API GET response.

Props ramonopoly, aaronrobertshaw, ellatrix.

Fixes #64292.


Built from https://develop.svn.wordpress.org/trunk@61301


git-svn-id: http://core.svn.wordpress.org/trunk@60613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 02:54:35 +00:00
Weston Ruter
893f17b4b1 Docs: Improve docblocks and types for WP_Screen properties.
* Correctly hint that `WP_Screen::$_show_screen_options` is null before being instantiated.
* Correctly hint that `::get_option()`, `get_help_tab()` and `get_screen_reader_text()` can return null.
* Ensure `$this->columns` is an `int`, by casting `$this->get_option( 'layout_columns', 'default' )` from its numeric string.

Developed in https://github.com/WordPress/wordpress-develop/pull/8860

Props justlevine, peterwilsoncc, westonruter.
See #64238, #64224.

Built from https://develop.svn.wordpress.org/trunk@61300


git-svn-id: http://core.svn.wordpress.org/trunk@60612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 02:20:32 +00:00
Weston Ruter
76ee0ab4bc Docs: Update various class @var tags to indicate nullability.
This updates various `@var` tags on class properties to correctly indicate that the props may be `null` or unset:

* `WP_Dependencies::$all_queued_deps` is nullable by both `::enqueue()` and `::dequeue`. Also, the types of the keys and values are specified. 
* `WP_Duotone::$global_styles_presets` and `::$global_styles_block_names` start off unset and are only initialized by static classes.
* `WP_Query::init()` and `WP_Rewrite::init()` are public methods that `unset()`s many class props.
* `WP_Theme::cache_delete()` sets many props to `null`.

Developed in https://github.com/WordPress/wordpress-develop/pull/8953

Props justlevine, westonruter.
See #64238, #64224.

Built from https://develop.svn.wordpress.org/trunk@61299


git-svn-id: http://core.svn.wordpress.org/trunk@60611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 02:00:36 +00:00
Weston Ruter
ec15921c78 Docs: Update typing for wp_create_category().
* Ensure that `wp_create_category()` returns `int` as opposed to `numeric-string`.
* Rename `$cat_name` to `$category_name` to avoid abbreviating variables.
* Update docblock to remove erroneous `int` for `$category_name` param when only `string` is intended.
* Add missing tests for `wp_create_category()`.

Developed in https://github.com/WordPress/wordpress-develop/pull/8861

Props justlevine, westonruter.
See #64238, #64226.

Built from https://develop.svn.wordpress.org/trunk@61298


git-svn-id: http://core.svn.wordpress.org/trunk@60610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-25 01:34:30 +00:00
Sergey Biryukov
879ba497c2 Twenty Nineteen: Ensure that Pullquote block color is reflected on citation text.
Follow-up to [43808].

Props nidhidhandhukiya, sainathpoojary, kelvinballoo, ankit-k-gupta, pooja1210, karmatosed, sabernhardt, sandeepdahiya, SergeyBiryukov.
Fixes #58100.
Built from https://develop.svn.wordpress.org/trunk@61295


git-svn-id: http://core.svn.wordpress.org/trunk@60607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 22:46:34 +00:00
dmsnell
1f8967b293 Block Processor: Rename extract_block() method for clearer documentation.
In testing during the release candidacy for WordPress 6.9 it was found
that the `extract_block()` method may do more work than is expected
based off of its name.

This change renames the method to `extract_full_block_and_advance()` to
communicate that it does move the Block Processor forward and to hint at
the fact that it also encompasses all inner blocks during that advance.

Developed in https://github.com/WordPress/wordpress-develop/pull/10538
Discussed in https://core.trac.wordpress.org/ticket/61401

Follow-up to [60939].

Props dlh, dmsnell, jonsurrell, westonruter.

See #61401.

Built from https://develop.svn.wordpress.org/trunk@61294


git-svn-id: http://core.svn.wordpress.org/trunk@60606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 21:54:34 +00:00
John Blackbourn
73b24b0ff0 Media: Account for boolean false being returned by wp_getimagesize() when dealing with potentially invalid images in wp_read_image_metadata().
Prior to PHP 8.5 a boolean value was silently ignored when being passed to `list()`, but in PHP 8.5 and higher this now triggers a PHP warning. This change adds an appropriate guard condition.

Props swissspidy, adamsilverstein

Fixes #64295

Built from https://develop.svn.wordpress.org/trunk@61291


git-svn-id: http://core.svn.wordpress.org/trunk@60603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 19:10:28 +00:00
joedolson
5973aca182 Admin: Remove alt syntax from dashicons.css
Safari only introduced support for alternative text in generated CSS content in version 17.4, released in 2024. This meets the latest two version declared for core browser support. But because `dashicons.css` is commonly required on the front-end for plugins and themes, this support impacts front-end users, and the browser support guidelines for core should not apply in this context.

Follow up to [60885].

Props codex-m, sabernhardt, wildworks, joedolson, desrosj, welcher.
Fixes #64266.
Built from https://develop.svn.wordpress.org/trunk@61290


git-svn-id: http://core.svn.wordpress.org/trunk@60602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 18:47:30 +00:00
desrosj
e37ff6fff6 Build/Test Tools: Introduce post-branching Grunt task.
In [59673], a Grunt subtask was introduced to convert workflow file references in GitHub Action workflows from local ones to remote ones that target the `trunk` branch.

The `workflow-references-local-to-remote` Grunt task should be run after creating a new numbered branch to take advantage of the work started in [58165].

This commit introduces a new target for the `clean` Grunt task: `workflows`. Running `grunt clean:workflows` will delete all workflow files that are not intended to exist outside of `trunk`.

Another Grunt task (`post-branching`) has also been added as a way to group all tasks taht should run within a newly created branch. For now, this contains `clean:workflows` and `replace:workflow-references-local-to-remote`. But more can be added in the future as more aspects of the branching process are automated.

Props johnbillion.
See #64227.
Built from https://develop.svn.wordpress.org/trunk@61286


git-svn-id: http://core.svn.wordpress.org/trunk@60598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 17:43:35 +00:00
wildworks
a05eec7fb1 Editor: Rename block visibility support key to visibility.
Renames the support key to `visibility` to avoid conflicting with the Block Visibility plugin's existing `blockVisibility` key.

Follow-up to [61014].

Props andrewserong, annezazu, cbravobernal, dlh, jorbin, joen, johnjamesjacoby, palak678, ramonopoly, talldanwp, tyxla, wildworks.
Fixes #64272.
Built from https://develop.svn.wordpress.org/trunk@61285


git-svn-id: http://core.svn.wordpress.org/trunk@60597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-24 08:07:33 +00:00
Sergey Biryukov
268d877d20 Twenty Nineteen: Correct center or right alignment for Download link in the File block.
Follow-up to [43808].

Props lakshyajeet, truptikanzariya, sabernhardt, sourabhjain, SirLouen, poojapadamad, SergeyBiryukov.
Fixes #59263.
Built from https://develop.svn.wordpress.org/trunk@61284


git-svn-id: http://core.svn.wordpress.org/trunk@60596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-23 23:45:29 +00:00
Weston Ruter
78bb7f180e Docs: Fix return type for WP_HTML_Decoder::read_character_reference().
Developed in https://github.com/WordPress/wordpress-develop/pull/8945

Follow-up to [58281].

Props justlevine.
See #64238, #61072.

Built from https://develop.svn.wordpress.org/trunk@61283


git-svn-id: http://core.svn.wordpress.org/trunk@60595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-23 06:00:26 +00:00
Weston Ruter
f765fbdc16 Docs: Cast header values to strings in WP_REST_Comments_Controller::get_items().
Follow-up to [38832].

Props justlevine, johnbillion.
See #64238.

Built from https://develop.svn.wordpress.org/trunk@61282


git-svn-id: http://core.svn.wordpress.org/trunk@60594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-23 05:50:26 +00:00
Weston Ruter
e4492020d5 Docs: Explicitly return null when documented instead of void in link-template.php functions.
The phpdoc `@return` tags for these functions indicate they may return `null`. This also fixes "Missing return argument" warnings which an IDE may also complain about.

Developed in https://github.com/WordPress/wordpress-develop/pull/8955

Props justlevine.
See #64238.

Built from https://develop.svn.wordpress.org/trunk@61281


git-svn-id: http://core.svn.wordpress.org/trunk@60593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-23 05:39:32 +00:00
Weston Ruter
94ccee0787 Docs: Fix phpdoc types for WP_Speculation_Rules members.
What was previously `mixed` is actually a speculation rule which can be more accurately be typed as `array<string, mixed>`. Additionally, the return value of `jsonSerialize` is fixed to indicate it returns an array of lists as opposed an array of associative arrays.

Developed in https://github.com/WordPress/wordpress-develop/pull/8946

Follow-up to [59837].

Props justlevine, johnbillion, westonruter.
See #64238, #63268, #62503.

Built from https://develop.svn.wordpress.org/trunk@61280


git-svn-id: http://core.svn.wordpress.org/trunk@60592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-23 05:08:29 +00:00
Sergey Biryukov
df7a24c97c Help/About: Use <strong> tags instead of double quotes in Media Library help text.
This aims to make the styling of button references more consistent across the help tabs.

Follow-up to [61277].

Props Guido07111975.
Fixes #64289.
Built from https://develop.svn.wordpress.org/trunk@61279


git-svn-id: http://core.svn.wordpress.org/trunk@60591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-22 23:25:33 +00:00
Weston Ruter
b06c9a7ca5 Docs: Update meta box action documentation to more accurately reflect the possible object types.
In addition to a meta box being able to be added for a post, it can also be added for a comment or a link, or even nothing at all when on the Dashboard.

Props opr18, nikunj8866, soyebsalar01, westonruter.
See #64224.
Fixes #64251.

Built from https://develop.svn.wordpress.org/trunk@61278


git-svn-id: http://core.svn.wordpress.org/trunk@60590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-22 04:37:31 +00:00