Commit Graph

51809 Commits

Author SHA1 Message Date
Sergey Biryukov
07a1dd7f26 Tests: Use assertSame() in some newly introduced tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [61032], [61045].

See #64324.
Built from https://develop.svn.wordpress.org/trunk@61373


git-svn-id: http://core.svn.wordpress.org/trunk@60685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-12 21:38:32 +00:00
Weston Ruter
060403ba5c Revisions: Prevent fatal error in PHP 8+ when saving a post revision with revisioned non-scalar post meta.
Developed in https://github.com/WordPress/wordpress-develop/pull/10560

Follow-up to [56714].

Props LAPSrj, manhphucofficial, westonruter.
See #20299.
Fixes #64314.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-12 05:08:28 +00:00
Weston Ruter
3161c53650 I18N: Use wp_get_list_item_separator() as list separator for the states of sites, posts, and media.
Developed in https://github.com/WordPress/wordpress-develop/pull/10577

Follow-up to [52929].

Props geminorum.
See #39733.
Fixes #64330.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-12 01:15:31 +00:00
Sergey Biryukov
7bd604bf47 Tests: Use assertSame() in some newly introduced tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [60775], [61131].

See #64324.
Built from https://develop.svn.wordpress.org/trunk@61370


git-svn-id: http://core.svn.wordpress.org/trunk@60682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-11 23:49:30 +00:00
Weston Ruter
55ffbba205 Export: Update export_wp() to handle get_comment() returning null due to filter.
The `get_comment` filter now explicitly documents returning `null` in addition to a `WP_Comment` object. This allows the filter to be used to exclude comments from an export. The `get_comment()` function already supported returning `null`.

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

Props abcd95, WPExplorer, desrosj, mukesh27, westonruter, SirLouen, lbones, mdibrahimk48, audrasjb, jorbin, wildworks, hellofromTonya, saurabh.dhariwal, mabfahad.
Fixes #61244.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-11 01:55:35 +00:00
Weston Ruter
ea8933b155 I18N: Add missing translation functions for REST API app login.
Developed in https://github.com/WordPress/wordpress-develop/pull/10578

Follow-up to [49110], [49109]. 

Props geminorum.
See #42790.
Fixes #64331.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-11 00:47:31 +00:00
Sergey Biryukov
e717c5617b Tests: Use assertSame() in some newly introduced tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [59132].

See #64324.
Built from https://develop.svn.wordpress.org/trunk@61367


git-svn-id: http://core.svn.wordpress.org/trunk@60679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-10 23:27:33 +00:00
Weston Ruter
fd69b7a993 Networks and Sites: Ensure the Site Address field renders in correct order when RTL locale is active.
Developed in https://github.com/WordPress/wordpress-develop/pull/10612

Props geminorum, johnjamesjacoby, westonruter.
See #49949.
Fixes #64381.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-09 22:43:36 +00:00
Sergey Biryukov
2e1b6a079d Tests: Use assertSame() in some newly introduced tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [61032].

See #64324.
Built from https://develop.svn.wordpress.org/trunk@61364


git-svn-id: http://core.svn.wordpress.org/trunk@60676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-09 22:04:32 +00:00
jorgefilipecosta
78aa59291a Add: Unit test to validate core abilities schemas only include valid properties.
On https://github.com/WordPress/wordpress-develop/pull/10508 we fixed an issue where some core abilties used invalid schema-04 properties.
This commit adds a unit test to make all the properties used are valid, so the same issue does not happen in the future.

Props jorgefilipecosta, westonruter.
Fixes: #64384
Built from https://develop.svn.wordpress.org/trunk@61363


git-svn-id: http://core.svn.wordpress.org/trunk@60675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-09 18:34:34 +00:00
Weston Ruter
47cbd4b9fe Docs: Improve specificity of types in WP_Script_Modules and script-modules.php functions.
Developed in https://github.com/WordPress/wordpress-develop/pull/10614

Follow-up to [61358].

See #64238.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-09 06:54:39 +00:00
wildworks
9246298a32 I18N: add border.radiusSizes key to theme-i18n.json
Makes border radius size name property translatable by updating `theme.json` i18n schema.

Props hbhalodia, mukesh27, swissspidy, twvania, umeshsinghin, wildworks.
Fixes #64333.
Built from https://develop.svn.wordpress.org/trunk@61361


git-svn-id: http://core.svn.wordpress.org/trunk@60673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-09 06:34:29 +00:00
Sergey Biryukov
f37b810036 Posts, Post Types: Only set default title for custom post types if they have title support.
Previously, the default post title was always set to `Auto Draft`, regardless of whether the CPT supports a title.

This commit ensures that the default title is present when a CPT has title support, and is an empty string otherwise.

Follow-up to [12987], [49288], [49614].

Props SirLouen, rajanit2000, garrett-eclipse, wildworks, nrqsnchz, donmhico, marybaum, audrasjb, bridgetwillard, TimothyBlynJacobs, joyously, hellofromTonya, helen, Cybr, mosescursor, fakhriaz, gulamdastgir04, peterwilsoncc, mindctrl, westonruter, SergeyBiryukov.
Fixes #45516.
Built from https://develop.svn.wordpress.org/trunk@61360


git-svn-id: http://core.svn.wordpress.org/trunk@60672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-08 21:55:34 +00:00
Sergey Biryukov
c2847c2520 Site Health: Include value of EMPTY_TRASH_DAYS constant in debug data.
Follow-up to [44986], [45078], [58855].

Props deepakprajapati, desrosj, dhruvang21, SergeyBiryukov.
Fixes #64189.
Built from https://develop.svn.wordpress.org/trunk@61359


git-svn-id: http://core.svn.wordpress.org/trunk@60671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-07 06:49:35 +00:00
Weston Ruter
5e940f833d Docs: Improve accuracy for types in phpdoc for WP_Dependencies, _WP_Dependency, WP_Scripts, and WP_Styles.
This increases these classes to PHPStan level 8.

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

See #64238.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-07 04:16:33 +00:00
Weston Ruter
67c33bebb7 Script Loader: Re-target release for missing dependency notices from 7.0.0 to 6.9.1.
Follow-up to [61323], [60999].

See #64229.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-07 01:11:33 +00:00
Sergey Biryukov
8853b3ac37 Docs: Add missing parameter descriptions in wp-admin/install.php.
Follow-up to [32654].

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


git-svn-id: http://core.svn.wordpress.org/trunk@60668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-06 12:28:29 +00:00
Weston Ruter
d34430e235 Site Health: Add common HTTP response headers for page cache detection.
Developed in https://github.com/WordPress/wordpress-develop/pull/10598

Follow-up to [54043].

Props akshat2802, szepeviktor, dmsnell, vincentbreton, dannythedog, westonruter.
See #56041.
Fixes #63748.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-06 01:53:29 +00:00
Weston Ruter
84655a4815 Docs: Update @since x.y.z with actual version number.
Follow-up to [60364].

Props solankisoftware, oztaser.
See #43421.
Fixes #64366.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-05 18:32:34 +00:00
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