Commit Graph

25422 Commits

Author SHA1 Message Date
John Blackbourn
98dbc89814 Docs: Correct the syntax of the $post_states parameter in some filters.
Follow up to r60993.

See #51403

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


git-svn-id: http://core.svn.wordpress.org/trunk@60573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-18 10:57:29 +00:00
Peter Wilson
940483092b Help/About: Spell out abbreviation in About page text.
Removes the `title` attribute from the `abbr` element in favour of inline text `LCP (Largest Contentful Paint)` to improve accessibility of the phrase as the `title` attribute is often unavailable to assistive technology users.

Props wildworks, ryelle.
See #63941.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-18 03:26:30 +00:00
ryelle
b30d5b291b Help/About: Update About page header images and performance content.
This adds the correct string for performance changes, updates the header images to not have rounded corners, and updates the release badge to use the stylized 6.9 icon.

Props ryelle, peterwilsoncc, westonruter.
See #63941.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-18 01:27:35 +00:00
Sergey Biryukov
652a6b2ac4 Quick/Bulk Edit: Rename the “Edit” bulk action label on the Posts screen to “Bulk edit”.
This aims to clarify the action being performed.

Follow-up to [8682], [8857], [8981], [9018], [15491], [48352].

Props antonrinas, SirLouen, johnbillion, karmatosed, SergeyBiryukov.
Fixes #35546.
Built from https://develop.svn.wordpress.org/trunk@61255


git-svn-id: http://core.svn.wordpress.org/trunk@60567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-17 23:37:35 +00:00
desrosj
e7d8965d68 External Libraries: Update getID3 to version 1.9.24.
In [60812], two changes related to PHP 8.5 compatibility were cherry picked from the upstream repository to be included in time for WordPress 6.9. Since then, a proper release has been tagged which includes several bug fixes in addition to the previous two changes.

HEIF support has also been added to the Quicktime audio/video module.

A full list of changes can be found on GitHub: https://github.com/JamesHeinrich/getID3/releases/tag/v1.9.24

Props TobiasBg.
Fixes #64253.
Built from https://develop.svn.wordpress.org/trunk@61253


git-svn-id: http://core.svn.wordpress.org/trunk@60565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-17 22:22:33 +00:00
Sergey Biryukov
10ce1b8521 Bootstrap/Load: Only override the $table_prefix global if not already defined.
This aims to provide more flexibility in preloading some environment settings before initializing WordPress.

Follow-up to [18993], [57748].

Props ninos-ego, dd32, swissspidy, SergeyBiryukov.
Fixes #63627.
Built from https://develop.svn.wordpress.org/trunk@61250


git-svn-id: http://core.svn.wordpress.org/trunk@60562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-16 19:33:35 +00:00
Sergey Biryukov
9152e42457 External Libraries: Upgrade PHPMailer to version 7.0.0.
This is exactly the same as version 6.11.1 but bumps the major version number to indicate the presence of a backward compatibility break in child classes.

Specifically, `lang()`, `setLanguage()`, and `$language` are now static, and should be called statically.

References:
* [https://github.com/PHPMailer/PHPMailer/releases/tag/v7.0.0 PHPMailer 7.0.0 release notes]
* [https://github.com/PHPMailer/PHPMailer/compare/v6.11.1...v7.0.0 Full list of changes in PHPMailer 7.0.0]

Follow-up to [54937], [55557], [56484], [57137], [59246], [59481], [60623], [60813], [60888].

Props SirLouen.
Fixes #64101.
Built from https://develop.svn.wordpress.org/trunk@61249


git-svn-id: http://core.svn.wordpress.org/trunk@60561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-15 23:55:33 +00:00
Adam Silverstein
575bdf57ea Notes: trash (or delete) child notes when parent is deleted.
Ensure that when a top level note is trashed (or deleted), all of its replies (children) are also trashed or deleted.  If EMPTY_TRASH_DAYS is 0, notes are deleted immediately; otherwise they are marked as trash for later cleanup.

Props adamsilverstein, desrosj, wildworks, mamaduka, karthickmurugan, jeffpaul, shailu25.
Fixes #64240.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-15 13:44:33 +00:00
Sergey Biryukov
c57ebd003e Coding Standards: Cast base_convert() to an integer before arithmetic operations.
Follow-up to [35477], [53104], [56101].

Props justlevine.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@61247


git-svn-id: http://core.svn.wordpress.org/trunk@60559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-14 22:13:31 +00:00
jorgefilipecosta
c3ed2e5c37 Fix: Custom font size taking over fit text.
Fixes an issue where if a paragraph/heading had a custom font size and then was conververted to the stretchy variation. The custom font size on the front end was applied instead of fit text.

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

Props jorgefilipecosta, mcsf, mrwweb.
Fixes #64254.
Built from https://develop.svn.wordpress.org/trunk@61246


git-svn-id: http://core.svn.wordpress.org/trunk@60558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-14 11:38:32 +00:00
desrosj
13f4f3c2de Build/Test Tools: Add MySQL 9.5 to test strategies.
MySQL 9.5 is the most recent innovation release. This updates the GitHub Actions workflows testing against innovation release versions to use this new version.

See #64225.
Built from https://develop.svn.wordpress.org/trunk@61245


git-svn-id: http://core.svn.wordpress.org/trunk@60557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-14 05:33:31 +00:00
jorgefilipecosta
29124d3c74 Fix: Core abilities invalid schemas (has examples and returns empty array intested of object).
Theis commit fixes two issues with the core abilities schemas we have:
- They have examples on the schema with is not complient with the version draft-04 of schema JSON we are using.
- The top level defaults are defined as an empty array and they are of type object, but a php empty array gets JSON serialized and returned in the rest API as [] instead of {}, causing problems on the client validation.

Developed in #10510.

Props jorgefilipecosta, gziolo.
Fixes #64252.
Built from https://develop.svn.wordpress.org/trunk@61244


git-svn-id: http://core.svn.wordpress.org/trunk@60556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-13 22:27:29 +00:00
Sergey Biryukov
882dbf7b39 Coding Standards: Remove redundant check in wpdb::set_sql_mode().
This commit removes an unnecessary `empty( $modes_str )` check, as the previous code block already checks the same value and returns early.

Follow-up to [30587], [56475].

Props justlevine.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@61243


git-svn-id: http://core.svn.wordpress.org/trunk@60555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-13 21:57:31 +00:00
desrosj
60109b4de5 Build/Test Tools: Revert [61018].
[61018] was a good way to quickly limit the number of jobs spawned by the PHPUnit test workflow during the time leading up to beta releases for the 6.9 release, but this approach is not sustainable. This reverts that commit so a better long term solution can be explored in #64083.

See #63170, #64083.
Built from https://develop.svn.wordpress.org/trunk@61225


git-svn-id: http://core.svn.wordpress.org/trunk@60554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-13 02:48:32 +00:00
Sergey Biryukov
cf34515a65 Coding Standards: Use more meaningful variable names in Admin Ajax actions.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

This commit includes renaming of the following variables:
- `$post_ID` to `$post_id` — “Use lowercase letters in variable, action/filter, and function names”.
- `$ext_type` to `$extension_type`.
- `$ext` to `$extension`.
- `$id3data` to `$id3_data` — “Separate words via underscores”.
- `$msg` to `$message`.
- `$sb` to `$sidebar`.
- `$alt` to `$alternate`.
- `$pid` to `$post_id`.
- `$mid` to `$meta_id`.
- `$menu_obj` to `$menu_object`.
- `$noparents` to `$no_parents` — “Separate words via underscores”.
- `$sup` to `$supplemental`.
- `$cat_id` to `$category_id`.
- `$cat_name` to `$category_name`.
- `$out` to `$output`.
- `$r` to `$edit_result`.
- `$t` to `$taxonomy`.
- `$u` to `$update_result`.
- `$r` to `$result`.
- `$response` to `$response_data`.
- `$x` to `$response`.

Follow-up to [53723], [55365].

Props costdev, mukesh27, SergeyBiryukov.
See #64226.
Built from https://develop.svn.wordpress.org/trunk@61224


git-svn-id: http://core.svn.wordpress.org/trunk@60553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-12 14:49:37 +00:00
jonsurrell
8629a48ecb Script Loader: Omit sourceURL from translation data when not printed.
The data returned from `WP_Scripts::print_translations()` when `$display` is `false` may be used in unpredictable ways that are incompatible with `sourceURL` comments. Omit the `sourceURL` comment in this case.

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

Follow-up to [60719].

Props jonsurrell, ralucastn, westonruter, peterwilsoncc.
See #63887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-12 11:36:33 +00:00
ellatrix
f13be83dc0 Post WordPress 6.9 RC 1 version bump.
Built from https://develop.svn.wordpress.org/trunk@61214


git-svn-id: http://core.svn.wordpress.org/trunk@60550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 15:32:32 +00:00
ellatrix
fc8bfd0dd3 WordPress 6.9 RC 1.
Built from https://develop.svn.wordpress.org/trunk@61213


git-svn-id: http://core.svn.wordpress.org/trunk@60549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 15:08:31 +00:00
Sergey Biryukov
5a26f687ba Tests: Clean up file destination in _unzip_file_*() unit tests.
This ensures clean environment in case of a previous test failure.

Follow-up to [56689].

Props aslamdoctor, wildworks, peterwilsoncc, SirLouen, mindctrl, kalpeshh, yashjawale, sachinrajcp123, SergeyBiryukov.
Fixes #63443.
Built from https://develop.svn.wordpress.org/trunk@61212


git-svn-id: http://core.svn.wordpress.org/trunk@60548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 13:34:29 +00:00
ellatrix
dc993b2d96 Sync packages for WP 6.9 RC 1.
Changes can be found at https://github.com/WordPress/gutenberg/commits/wp/6.9/.

Developed in https://github.com/WordPress/wordpress-develop/pull/10495.
See https://make.wordpress.org/core/handbook/about/release-cycle/block-editor-release-process-for-major-releases/#package-updates-and-core-patches.

Fixes #64220.
Props priethor.
Built from https://develop.svn.wordpress.org/trunk@61211


git-svn-id: http://core.svn.wordpress.org/trunk@60547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 13:32:43 +00:00
Sergey Biryukov
3d3ecd8796 Users: Initialize the WP_User::$roles property as a sequential array.
Previously, if any roles were filtered out via `array_filter()` when assigning the `WP_User::$roles` property in `WP_User::get_role_caps()`, the resulting array could contain non-sequential numeric keys, which would then cause it to be treated as an object when JSON-encoded, e.g. in `wp_localize_script()`, instead of a proper array, breaking client-side expectations.

This commit ensures that the `WP_User::$roles` property is always treated as an array.

Follow-up to [2703], [2793], [22118].

Props haruncpi, peterwilsoncc, SirLouen, getsyash, wildworks, johnjamesjacoby, SergeyBiryukov.
Fixes #63427.
Built from https://develop.svn.wordpress.org/trunk@61210


git-svn-id: http://core.svn.wordpress.org/trunk@60546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 12:53:32 +00:00
desrosj
22a23d7b5f Build/Test Tools: Update third-party GitHub Actions.
This updates the following third-party GitHub Actions:
- `actions/github-script` from `7.0.1` to `8.0.0`.
- `actions/checkout` from `4.2.2` to `5.0.0`.
- `actions/setup-node` from `4.3.0` to `6.0.0`.
- `actions/upload-artifact` from `4.6.2` to `5.0.0`.
- `actions/cache` from `4.2.4` to `4.3.0`.
- `actions/download-artifact` from `5.0.0` to `6.0.0`.
- `shivammathur/setup-php` from `2.35.3` to `2.35.5`.
- `codecov/codecov-action` from `5.4.3` to `5.5.1`.

See #63170.
Built from https://develop.svn.wordpress.org/trunk@61209


git-svn-id: http://core.svn.wordpress.org/trunk@60545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 11:30:32 +00:00
Aaron Jorbin
5bb704aa84 Coding Standards: Align equal signs.
Follow-up to [61204].

See #63941.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 04:59:31 +00:00
Aaron Jorbin
1cdb37bdce Tests: Use a dataprovider for the esc_like test.
Props jorbin, mukesh27.
See #63167.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 04:45:33 +00:00
desrosj
5bd35da348 Build/Test Tools: Update dependencies for bundled themes.
This updates the `devDependencies` for each of the default themes with `package.json` files with a few exceptions:
- `eslint`: This was updated to the latest `8.x` version only since `9.x` is not yet properly supported by `@wordpress/eslint-plugin`.
- `stylelint`-related packages: these updates are resulting in formatting changes. These need to be examined more carefully as they’re likely undesired and require adjustments to the configuration file.

Props peterwilsoncc, desrosj.
Fixes #63171.
Built from https://develop.svn.wordpress.org/trunk@61206


git-svn-id: http://core.svn.wordpress.org/trunk@60542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 04:22:32 +00:00
desrosj
ce441ca3f1 Build/Test Tools: Update devDependencies.
This updates the following `devDependencies`:
- `@playwright/test` from `1.50.1` to `1.56.1`.
- `@pmmmwh/react-refresh-webpack-plugin` from `0.5.15` to `0.6.1`.
- `autoprefixer` from `10.4.20` to `10.4.22`.
- `chalk` from `5.4.1` to `5.6.2`.
- `copy-webpack-plugin` from `13.0.0` to `13.0.1`.
- `cssnano` from `7.0.6` to `7.1.2`.
- `dotenv` from `16.4.7` to `17.2.3`.
- `dotenv-expand` from `12.0.1` to `12.0.3`.
- `grunt-sass` from `4.0.0` to `4.0.1`.
- `postcss` from `8.5.3` to `8.5.6`.
- `qunit` from `2.23.1` to `2.24.2`.
- `sass` from `1.85.1` to `1.94.0`.
- `terser-webpack-plugin` from `5.3.12` to `5.3.14`.
- `uuid` from `11.1.0` to `13.0.0`.
- `wait-on` from `8.0.2` to `9.0.3`.

A new variable, `DOTENV_CONFIG_QUIET`, has been added to the `.env.example` file to silence tips output by the `dotenv` dependency.

Additionally, `npm audit fix` has been run.

Props peterwilsoncc, desrosj.
See #63171.
Built from https://develop.svn.wordpress.org/trunk@61205


git-svn-id: http://core.svn.wordpress.org/trunk@60541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 03:51:42 +00:00
ryelle
3bd214e775 Help/About: Update the About page for 6.9.
Introducing the new content for the 6.9 About page. This release also introduce new header images across the About section.

See #63941.
Props desrosj, jeffpaul, 4thhubbard, priethor, annezazu, fcoveram, joedolson, ryelle, peterwilsoncc.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 03:49:31 +00:00
desrosj
6faf8dc83f General: Remove redundant step.
The `cd wordpress-develop` step is now mentioned for both approaches for creating a fork and cloning listed above.

Follow up to [61202].

Props pbearne, desrosj, westonruter, wildworks, peterwilsoncc.
See #64100.
Built from https://develop.svn.wordpress.org/trunk@61203


git-svn-id: http://core.svn.wordpress.org/trunk@60539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 02:54:29 +00:00
desrosj
4cdaa890aa General: Clarify that contributors should fork wordpress-develop.
Because `WordPress/wordpress-develop` is a mirror, the only way to contribute to WordPress on GitHub is by forking the repository (even when a contributor has write access as a Core Committer). This updates the “Getting Started” section to make this more clear.

The section about how to contribute using GitHub Codespaces is also being removed since this has been broken for some time (see #57896). This section can be reintroduced once the underlying tooling is fixed.

Props pbearne, desrosj, westonruter, wildworks, peterwilsoncc.
Fixes #64100. See #57896.
Built from https://develop.svn.wordpress.org/trunk@61202


git-svn-id: http://core.svn.wordpress.org/trunk@60538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 02:45:28 +00:00
Weston Ruter
59fa338979 Mail: Improve multipart message handling in wp_mail().
This improves how `wp_mail()` handles `Content-Type` headers for multipart messages, preventing cases where the header could be duplicated.

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

Props SirLouen, gitlost, rmccue, westi, MattyRob, bgermann, nacin, SergeyBiryukov, dd32, MikeHansenMe, Kleor, kitchin, JeffMatson, abcd95, westonruter, christinecooper, JohnVieth, dawidadach, imokweb, ayeshrajans, lakshyajeet, tusharbharti, sajjad67.
Fixes #15448.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-11 02:36:35 +00:00
Sergey Biryukov
e6de13564c Coding Standards: Use more meaningful variable names in Admin Menu.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

This commit includes renaming of the following variables:
* `$i` to `$submenu_index`.
* `$cap` to `$capability`.
* `$tax` to `$taxonomy`.
* Several `$awaiting_mod_*` to `$awaiting_moderation_*`.
* Several `$ptype_*` to `$post_type_*`.
* `$types` to `$post_types`.
* `$appearance_cap` to `$appearance_capability`.

Follow-up to [12597], [14654], [21199], [23871], [33723], [33867].

Props costdev, SergeyBiryukov.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@61200


git-svn-id: http://core.svn.wordpress.org/trunk@60536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 22:59:28 +00:00
Adam Silverstein
c0db6ac66c Notes: refine post author notifications.
Code maintenance follow up to r61179. Move `wp_new_comment_via_rest_notify_postauthor` callback from REST API Comments controller to comment.php. Add default to `wp_notes_notify` for multisite compatibility.

Props adamsilverstein, justlevine, mukesh27, mamaduka, peterwilsoncc, desros.
See #64204.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 22:51:35 +00:00
joedolson
7893a6d652 Themes: Improve type checking in wp_title.
Follow up to [61108]. 

Change type handling to ensure that falsey string values like `0` are correctly handled. Improves readability of underlying code by consolidating type checks and passing resulting array to the `wp_title_parts` filter.

Props tobiasbg, sabernhardt, sirlouen, wildworks, joedolson, mukesh27.
Fixes #61352.
Built from https://develop.svn.wordpress.org/trunk@61198


git-svn-id: http://core.svn.wordpress.org/trunk@60534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 22:31:31 +00:00
luisherranz
ce0770032a Interactivity API: Fatal error processing incorrect closed tags.
Fix for fatal errors caused by incorrect closing tags in HTML, such as `</br>`. In these cases, the `get_attribute_names_with_prefix` method of the `WP_HTML_Tag_Processor` returns `null`, and the Interactivity API was not handling this situation correctly.

Props hugosolar, jonsurrell, darerodz.
Fixes #63891.
Built from https://develop.svn.wordpress.org/trunk@61197


git-svn-id: http://core.svn.wordpress.org/trunk@60533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 22:24:34 +00:00
desrosj
b2d1cd8099 Build/Test Tools: Ensure all db WP-CLI commands work.
This ensures that the presence of a self-signed certificate from a MySQL/MariaDB container will not cause `db` WP-CLI commands run using `env:cli` in the local development environments to fail.

Follow up to [60735].

Props westonruter, mukesh27.
Fixes #64128. See #63876.
Built from https://develop.svn.wordpress.org/trunk@61196


git-svn-id: http://core.svn.wordpress.org/trunk@60532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 21:29:37 +00:00
Weston Ruter
6a32aeaf8c Themes: Restore 'Live Preview' button for block themes.
Note that the `return` query parameter is not yet functional in the Site Editor. See [https://github.com/WordPress/gutenberg/issues/47934 Gutenberg#47934].

Follow-up to [52341], [52346], [52353], [52802].

Props ninomiho, mcsf, dhruval04, praful2111, mlaetitia1986.
See #54578.
Fixes #64159.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 21:08:05 +00:00
Peter Wilson
80b19f51c3 Emoji: Update Twemoji to 17.0.2.
Updates the endpoint for Twemoji images to use those released in 17.0.2, following an upstream minor release optimizing the SVG images.

Modifies the build script to pull the image file names from the `gh-pages`/deploy branch of Twemoji upon the advice of their contributors.

Props peterwilsoncc, paulkevan, wildworks, desrosj.
Fixes #64184.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 21:06:34 +00:00
desrosj
7adbca1ca9 Date/Time: Revert [60942].
The changes in [60942] aimed to add an indicator next to the default date and time formats for the site’s locale in General Settings. However, the changes do not take into account the fact that a user may have a different language than the site’s default selected as their preference.

Props swissspidy, johnbillion, SergeyBiryukov, pbearne, desrosj, wildworks.
See #64102.
Built from https://develop.svn.wordpress.org/trunk@61193


git-svn-id: http://core.svn.wordpress.org/trunk@60529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 20:42:28 +00:00
Weston Ruter
b058f24638 Coding Standards: Initialize $comments_count before loop in case not set during initial iteration.
Follow-up to [60643].

Props westonruter, mindctrl.
See #56499.
Fixes #64223.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 20:39:36 +00:00
Weston Ruter
d0a76e02d6 Code Modernization: Fix instances of using null as an array offset.
This avoids using multisite-specific tables and columns in `WP_Date_Query::validate_column()` when on a non-multisite install. Attempting to use `$wpdb->blogs` as an array index when `null` on a non-multisite install causes a deprecation notice in PHP 8.5. This also updates the multisite table alias in `wpdb` to make it clear they could be `null`.

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

Follow-up to [60904], [60809], [37477].

Props westonruter, desrosj.
See #63061.
Fixes #63957.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 20:28:32 +00:00
wildworks
abc544d33e Editor: Fix handling of default presets at block level in theme.json
Fix an issue where block-level presets do not work correctly when default presets are disabled and the slug matches a default preset.

Props aaronrobertshaw, bph, ramonopoly, wildworks.
Fixes #64195.
Built from https://develop.svn.wordpress.org/trunk@61190


git-svn-id: http://core.svn.wordpress.org/trunk@60526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 06:43:38 +00:00
Weston Ruter
db48c08d85 Twenty Twenty: Fix font inconsistency for Latest Posts block in block editor.
This ensures that the font used on the frontend is also used in the block editor.

Props rishabhwp, shailu25, sabernhardt, jobata, gulamdastgir04, oglekler, nidhidhandhukiya, Maia12345, audrasjb.
Fixes #63798.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 04:08:34 +00:00
Peter Wilson
d9356e42f3 Docs: Clarify behavior in wp_set_auth_cookie().
Clarifies how long authentication cookies are set for when setting the `$remember` parameter.

Props johnbillion, khoipro, rollybueno, shailu25, siliconforks, wildworks, zodiac1978.
Fixes #63230.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-10 02:13:34 +00:00
Sergey Biryukov
5a4b0278a9 Coding Standards: Use more meaningful variable names in Classic Widgets screen.
Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:

> Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

This commit includes renaming of the following variables:
* `$sbname` to `$sidebar_name`.
* `$sbvalue` to `$sidebar_data`.
* `$j` to `$widget_count`.
* `$i` to `$sidebar_index`.
* `$sb` to `$sidebar`.
* `$key` to `$sidebar_id`.

Follow-up to [10912], [11009], [11427], [26285], [50997].

Props costdev, mukesh27.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@61187


git-svn-id: http://core.svn.wordpress.org/trunk@60523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-09 23:03:38 +00:00
Sergey Biryukov
847d9adf98 Tests: Add unit tests for a label fallback in WP_Block_Styles_Registry::register().
Follow-up to [59760].

Props Rahmohn, mukesh27, SergeyBiryukov.
See #63167.
Built from https://develop.svn.wordpress.org/trunk@61186


git-svn-id: http://core.svn.wordpress.org/trunk@60522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-08 13:48:38 +00:00
Sergey Biryukov
a6a3a82b63 Tests: Improve unit tests for feed_links_extra().
Includes:
* Converting data provider methods to `static` for a slight performance improvement.
* Correcting annotations for consistency.

Follow-up to [53033], [53125], [54161].

Props mukesh27, SergeyBiryukov.
See #63167.
Built from https://develop.svn.wordpress.org/trunk@61185


git-svn-id: http://core.svn.wordpress.org/trunk@60521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-07 23:40:28 +00:00
ellatrix
f977fc8f7d Gruntfile: verify:source-maps: restore for core-data.
Yjs was bundled by accident in the `core-data` package, so we had to ignore the source map verification in an earlier package sync ([61009]). This can now be restored because the issue was fixed in https://github.com/WordPress/gutenberg/pull/72503.

Fixes #64120.
Built from https://develop.svn.wordpress.org/trunk@61184


git-svn-id: http://core.svn.wordpress.org/trunk@60520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-07 21:19:35 +00:00
Adam Silverstein
060ffe8d40 Comments: ensure notes never show on the comments page.
Fix an issue where adding comment_type=note as a query parameter to the wp-admin/edit-comments.php page would unexpectedly cause notes to show. Notes are different from comments - prevent them from showing on the comment list table.

Props adamsilverstein, desros, soyebsalar01j. 
Fixes #64198.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-07 18:56:32 +00:00
ellatrix
1fb16f461f Post WordPress 6.9 Beta 4 version bump.
Built from https://develop.svn.wordpress.org/trunk@61182


git-svn-id: http://core.svn.wordpress.org/trunk@60518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-07 15:32:34 +00:00
ellatrix
62e96e3309 WordPress 6.9 Beta 4.
Built from https://develop.svn.wordpress.org/trunk@61181


git-svn-id: http://core.svn.wordpress.org/trunk@60517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-07 15:14:35 +00:00