50749 Commits

Author SHA1 Message Date
joedolson
82b0021270 Bundled Themes: Twenty Fifteen: Fix ARIA expanded in primary menu.
Set `aria-expanded` to true when automatically expanding active child menus in the primary menu. Add `aria-controls` to explicitly define controlled content in menus.

Props bschneidewind, joedolson, dhruvang21, pooja1210, shailu25.
Fixes #62936.
Built from https://develop.svn.wordpress.org/trunk@59916


git-svn-id: http://core.svn.wordpress.org/trunk@59258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 21:07:23 +00:00
Sergey Biryukov
6a904137d2 Coding Standards: Use strict comparison in wp_insert_comment().
Includes type casting `$comment_approved` to an integer to avoid breaking WP-CLI tests, since the value can be passed as a string.

Follow-up to [3104], [3193], [3887], [59903].

Props swissspidy.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59915


git-svn-id: http://core.svn.wordpress.org/trunk@59257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:59:21 +00:00
joedolson
3e3b488116 Bundled Themes: Twenty Fourteen: Move skip link to top of body.
Move the skip link to the top of the body content, so it is the first focusable item on the page.

Props joedolson, abcd95, manojmaharrshi, vganavda, shailu25.
Fixes #62969.
Built from https://develop.svn.wordpress.org/trunk@59914


git-svn-id: http://core.svn.wordpress.org/trunk@59256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:37:25 +00:00
joedolson
f0ea8012b4 Bundled Themes: Twenty Thirteen: Move skip link to top of body.
Move the skip link to the top of the body content, so it is the first focusable item on the page.

Props joedolson, sabernhardt, abcd95, manojmaharrshi, shailu25, audrasjb, krupajnanda.
Fixes #62968.
Built from https://develop.svn.wordpress.org/trunk@59913


git-svn-id: http://core.svn.wordpress.org/trunk@59255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:25:20 +00:00
joedolson
409049938d Bundled Themes: Twenty Twelve: Move skip link to top of body.
Move the skip link to the top of the body content, so it is the first focusable item on the page.

Props joedolson, sabernhardt, abcd95, vgnavada, shailu25.
Fixes #62892.
Built from https://develop.svn.wordpress.org/trunk@59912


git-svn-id: http://core.svn.wordpress.org/trunk@59254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:22:24 +00:00
joedolson
e317aba277 Bundled Themes: Twenty Twelve: Add ARIA attributes on menu toggle.
Add `aria-expanded` and `aria-controls` attributes to the Twenty Twelve mobile menu toggle.

Props bschneidewind, joedolson, sabernhardt, umeshsinghin.
Fixes #62892.
Built from https://develop.svn.wordpress.org/trunk@59911


git-svn-id: http://core.svn.wordpress.org/trunk@59253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:09:23 +00:00
audrasjb
e6e754206f Admin bar: Update the "Edit Site" link.
This changeset replaces the "Edit Site" link in the admin bar to point to the top level screen of the Site Editor, instead of opening the current template.
Merges Gutenberg changeset: WordPress/gutenberg#69271

Props mosne, poena, audrasjb, shailu25.
Fixes #62368.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 20:07:25 +00:00
audrasjb
c06ff46877 Docs: Param indentation improvements in get_calendar() function and hooks.
See #34093.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 19:59:24 +00:00
audrasjb
f4c1c5778e Widgets: Add post type support to get_calendar() function.
This changeset updates the `get_calendar()` function to allow post type filtering via the `$post_type` parameter, with backard compatibility for previous params. It also updates the related `get_calendar_args` and `get_calendar` hooks accordingly.

Props sebastianpisula, swissspidy, dwainm, moxie, sukhendu2002, audrasjb, mukesh27. 
Fixes #34093.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 19:56:24 +00:00
joedolson
b2d674c7ac Bundled Themes: Add aria-current="page" on header links.
Mark links that point to the current URL in bundled theme headers with `aria-current="page"` to inform screen reader users that this link is the current page.

Changes to Twenty Ten through Twenty Twenty add `aria-current` and `rel="home"` where appropriate, Twenty Twenty One only adds `rel="home"`.

Props bschneidewind, joedolson, hiabhaykulkarni, sabernhardt.
Fixes #62895.
Built from https://develop.svn.wordpress.org/trunk@59907


git-svn-id: http://core.svn.wordpress.org/trunk@59249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 18:45:25 +00:00
Joe McGill
0cfe0fd2ad Editor: Update packages for 6.8 Beta 1.
Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, desrosj.
See #62887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 18:08:42 +00:00
Joe McGill
59bb042094 Editor: Support Stylebook in the Site Editor for classic themes.
This modifies the submenu for the Site Editor which previously linked directly to the Patterns page after [58278] to support accessing the Stylebook in classic themes via a new "Design" link. Currently, any classic themes that have either added support for `editor-styles` or have a theme.json file will automatically see this new link in the admin menu.

Props isabel_brison, poena, wildworks, mamaduka, karmatosed, joemcgill.
Fixes #62509.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 17:22:25 +00:00
John Blackbourn
f2de6c15ca Security: Reduce the length of the hash returned by wp_fast_hash() so it can be used in the user_activation_key field when a legacy database schema is still in use.
This reduces the hash length from 32 bytes to 30 so the overall length of an activation key after encoding, prefixing, and prepending a timestamp fits into 60 bytes.

A key is also introduced for domain separation. This doesn't affect the output length.

Props dd32, paragoninitiativeenterprises, peterwilsoncc, johnbillion

Fixes #21022
Built from https://develop.svn.wordpress.org/trunk@59904


git-svn-id: http://core.svn.wordpress.org/trunk@59246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 09:51:22 +00:00
Pascal Birchler
582128f4f2 Coding Standards: Revert strict comparison added in [59898].
`$comment_approved` can be both a string or an integer, so this change had unintended consequences such as breaking WP-CLI tests.

See #62279.
Built from https://develop.svn.wordpress.org/trunk@59903


git-svn-id: http://core.svn.wordpress.org/trunk@59245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 09:05:37 +00:00
joedolson
371495c91d Media: Allow uploading images from URLs without extensions.
Enable `download_url()` to fetch and verify file types if the URL does not contain a file extension. This allows URL downloads to handle media endpoints like istockphoto.com that use file IDs and formatting arguments to deliver images.

Props masteradhoc, mitogh, joedolson, hellofromTonya, antpb, audrasjb, navi161, dmsnell.
Fixes #54738.
Built from https://develop.svn.wordpress.org/trunk@59902


git-svn-id: http://core.svn.wordpress.org/trunk@59244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 00:19:23 +00:00
Peter Wilson
a10c294d3e Users: Use editable_roles filter for multisite sub-sites.
Adds a check of the `editable_roles` filter when adding users to a multisite sub-site to ensure the role is permitted to be used on the network. If the role is blocked by the filter, attempting to add the role will trigger a `wp_die()` similar to attempting to add a user with the role on a single site install.

Props eartboard, hareesh-pillai, ideag, sukhendu2002, spacedmonkey, thomaswm.
Fixes #43251.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 23:35:23 +00:00
Peter Wilson
f385ca5e98 Users: Add pre-flight filter to count_many_users_posts().
Introduces the filter `pre_count_many_users_posts()` to allow developers to bypass the function in favour of either avoiding counts or their own counting functionality.

Props audrasjb, ethitter, jigar-bhanushali, jorbin.
Fixes #63004.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 23:06:20 +00:00
TimothyBlynJacobs
48128ad56d REST API: Improve performance for HEAD requests.
By default, the REST API responds to HEAD rqeuests by calling the GET handler and omitting the body from the response. While convenient, this ends up performing needless work that slows down the API response time.

This commit adjusts the Core controllers to specifically handle HEAD requests by not preparing the response body.

Fixes #56481.
Props antonvlasenko, janusdev, ironprogrammer, swissspidy, spacedmonkey, mukesh27, mamaduka, timothyblynjacobs.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 22:07:25 +00:00
Sergey Biryukov
bd3842f01d Coding Standards: Use strict comparison in wp_insert_comment().
Follow-up to [3104], [3193], [3887].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59898


git-svn-id: http://core.svn.wordpress.org/trunk@59240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 19:48:21 +00:00
joedolson
5961453fc3 Media: Simplify file name generation for image conversions.
Use the empty string argument in `$editor->save()` added in [59855] to simplify the code used to prevent image format conversions from getting a suffix appended to their file names.

Props joedolson, audrasjb, azaozz.
See #62385.
Fixes #63003.
Built from https://develop.svn.wordpress.org/trunk@59897


git-svn-id: http://core.svn.wordpress.org/trunk@59239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 18:55:23 +00:00
John Blackbourn
01c10003eb Docs: Various improvements to inline documentation.
See #62281
Built from https://develop.svn.wordpress.org/trunk@59896


git-svn-id: http://core.svn.wordpress.org/trunk@59238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 00:43:23 +00:00
John Blackbourn
72db4453b3 Security: Add some test files that were missed in [59828].
See #21022
Built from https://develop.svn.wordpress.org/trunk@59895


git-svn-id: http://core.svn.wordpress.org/trunk@59237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-02 00:37:23 +00:00
Sergey Biryukov
5b37e6aff1 Site Health: Fix typo in the robots.txt check messages.
Follow-up to [59890].

See #56595.
Built from https://develop.svn.wordpress.org/trunk@59894


git-svn-id: http://core.svn.wordpress.org/trunk@59236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-01 00:29:24 +00:00
John Blackbourn
d75f025337 Security: Reintroduce support for passwords hashed with MD5.
This reinstates the ability for a user to log in to an account where the password is hashed using MD5. This means that the ability to reset a password directly in the database using an SQL query or a database administration tool will be retained without the need to implement or integrate with bcrypt or phpass.

A password hashed with MD5 will get upgraded to bcrypt at the point where a user successfully logs in, just as is the case with a phpass hash.

Props audrasjb, aaronjorbin, johnbillion, david-innes, benniledl.

See #21022.
Built from https://develop.svn.wordpress.org/trunk@59893


git-svn-id: http://core.svn.wordpress.org/trunk@59235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 18:53:23 +00:00
Joe McGill
b024026e81 REST API: Add support for search_columns to the user endpoint.
This adds support for passing a `search_columns` argument to the user controller so that users with `list_users` caps can specify which field is being searched.

Props youknowriad, joemcgill, ntsekouras, mreishus, mamaduka.
Fixes 62596.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 18:21:26 +00:00
Tammie Lister
efc402898c Twenty Twenty-Five: Improves text strings.
This ticket replaces the issue not resolved in time before the release of the theme. This now takes the feedback of translators and iterates on that.
  
Props poena, desrosj, hameem1102, burakkaptan, jorbin, prathamesh24, audrasjb.  
Fixes #62482.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 17:07:23 +00:00
Aaron Jorbin
bc60a625bb Site Health: Add a robots.txt check to the server data.
Provide a bit of information about robots.txt to help people understand if the file is generated by WordPress.

Props zodiac1978, audrasjb, joostdevalk, jorbin.
Fixes #56595.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 16:58:38 +00:00
audrasjb
6afbd33612 General: Add missing space before checked attributes in various WP_Screen functions.
Props kkmuffme, audrasjb. 
Fixes #63037.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 15:01:24 +00:00
audrasjb
d4786b8367 Embeds: Revert [59883].
This reverts [59883] as the addition of the youtube-nocookie domain to the embed providers list wasn't done correctly.

Unprops audrasjb. Props otto42, swissspidy. 
See #44610.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 13:30:21 +00:00
Sergey Biryukov
9300a155ae Coding Standards: Use strict comparison in privacy_ping_filter().
Follow-up to [3548], [3885].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59887


git-svn-id: http://core.svn.wordpress.org/trunk@59229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-28 11:27:20 +00:00
Peter Wilson
07d0114307 REST API: Exit gracefully for malformed URLs.
Exit gracefully for requests with a malformed `rest_route` query string parameter, ie anything that is not a string.

This prevents fatal errors from occurring with URLs such as `example.com/?rest_route[]=array` as the URL is user input so logging the data provides no benefit to developers as they are unable to resolve the issue.

Props geekofshire, dd32, timothyblynjacobs.
Fixes #62932.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 23:19:25 +00:00
Peter Wilson
0d3573d58b Editor: Set new default rendering mode for Pages.
This update updates the `page` post-type definition and sets `template-locked` as the new default rendering mode for the block editor.

Props mamaduka, wildworks, joemcgill, tyb, swissspidy, audrasjb.
Fixes #61811.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 23:10:23 +00:00
audrasjb
33952d5069 Themes: Fix inconstancies between theme and plugin editor.
This updates the header area of the theme and plugin file editor screen to make them more consistent. It now displays the name of theme or plugin, the active or inactive state, and the path to the file that is selected.

Props karmatosed, poena, audrasjb.
Fixes #41142.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 23:04:27 +00:00
audrasjb
ac2ce38de7 Embeds: Add support for youtube-nocookie.com domain.
This adds Embed support for YouTube embeds coming from the youtube-nocookie.com domain.

Props jepperask, birgire, williampatton, paapst, RogierLankhorst, utrenkner, BjornW, adakaleh, garrett-eclipse, hellofromTonya, xkon, francina, johnbillion, TimothyBlynJacobs, jottevanger, Mte90, didierjm, desrosj, masteradhoc, ryelle, audrasjb, abhi3315, sukhendu2002.
Fixes #44610.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 22:44:23 +00:00
Sergey Biryukov
f37de3c6ac Docs: Correct the type for ::prepare_status_response() parameter in WP_REST_Comments_Controller.
The accepted value is `WP_Comment::$comment_approved`, which is documented as a string.

Follow-up to [38832], [33891], [39015], [59805], [59871].

See #62281.
Built from https://develop.svn.wordpress.org/trunk@59882


git-svn-id: http://core.svn.wordpress.org/trunk@59224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 22:41:24 +00:00
Felix Arntz
741a914df3 General: Allow speculative loading opt-out CSS classes to be applied on parent element, e.g. at the block level.
Follow-up to [59837].

Props flixos90, westonruter.
Fixes #63032.
See #62503.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 22:14:25 +00:00
Mamaduka
b6a0684402 REST API: Add the site reading options to the index.
Exposes `page_for_posts`, `page_on_front` and `show_on_front` reading settings via REST API index.

Props mamaduka, audrasjb, spacedmonkey, timothyblynjacobs.
Fixes #63023.
Built from https://develop.svn.wordpress.org/trunk@59880


git-svn-id: http://core.svn.wordpress.org/trunk@59222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 03:39:25 +00:00
audrasjb
9d245fd864 Administration: Revert [59705] and bring back the light grey admin background.
This reverts the full-white background update that was committed in [59705] to give it more time for testing and feedback. Let's revisit this proposal later and revert to the good ol’ grey background.

Props afercia, richtabor, karmatosed, johnjamesjacoby, johnbillion, sabernhardt, 
See #62831.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 00:28:24 +00:00
audrasjb
201731789c Comments: Remove bulk action dropdown depending on user caps.
This changeset introduces the `manage_users-network_custom_column` filter that fires for each custom column in the Network Users list table. This is an override hook for `manage_users_custom_column` which was already filtering each custom column in all Users list tables.

Props lenasterg, realloc, audrasjb.
Fixes #43318.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-27 00:09:23 +00:00
audrasjb
2574278658 Comments: Remove bulk action dropdown depending on user caps.
This changeset adds a conditional to show the comments bulk actions dropdown only when the current user has `moderate_comments` capability.

Props snicco, iflairwebtechnologies, shanemuir, audrasjb.
Fixes #59440.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 23:50:23 +00:00
audrasjb
b0efc2929c Administration: Revert [59709].
This reverts the lighter font-weight update that was committed in [59709] to give it more time for testing and feedback.

Fixes #62865.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 22:55:23 +00:00
audrasjb
00228cf046 Administration: Adjust submenu padding in admin menu.
This changeset adjusts the padding for submenu link groups in the admin menu, ensuring consistent top and bottom padding.

Follow-up to [26072].

Props trushaamin, modi2918, hellofromTonya, peterwilsoncc, sabernhardt, im3dabasia1, audrasjb, karmatosed, dhrumilk.
Fixes #61689.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 21:47:25 +00:00
Felix Arntz
2649d14466 Editor: Allow registering block type collections with a single function call.
[59132] introduced the `wp_register_block_metadata_collection()` function and underlying `WP_Block_Metadata_Registry` class to allow central registration of a block metadata PHP manifest file in favor of parsing individual JSON files. While this improves performance, it only increases the amount of APIs and code that plugin developers need to use to register their block types properly.

This changeset introduces a new function `wp_register_block_types_from_metadata_collection()` that improves the developer experience of registering block types from a single source, by handling it in only a single function call.

Developers that already use a generated block metadata PHP manifest file (e.g. via the `wp-scripts build-blocks-manifest` tool) can now call `wp_register_block_types_from_metadata_collection()` with that file to automatically register all block types from that block metadata collection. Individual calls to `register_block_type()` or `register_block_type_from_metadata()` are no longer necessary when the new function is used.

Props flixos90, gziolo, joemcgill, mreishus, mukesh27, swissspidy.
Fixes #62267.
See #62002.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 19:40:25 +00:00
desrosj
10c16acbb2 Build/Test Tools: Raise timeout value when running tests on PHP 8.4.
The test suite when run on PHP 8.4 with MySQL is currently taking 2-3x the amount of time to run. The jobs are regularly hitting the conservative `20` minute time out configured to prevent runaway jobs.

While this performance regression is investigated, this increases the timeout value to `30` to avoid running into unnecessary failures now that the issue has been discovered.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 18:49:26 +00:00
Joe McGill
210b222613 Themes: Allow pattern files to be organized into sub-folders.
This allows theme pattern files located in a theme's `/patterns/` directory to be organized into sub-folders and will automatically be located by `WP_Theme::get_block_patterns()` method.

Props juanfra, joemcgill, poena, flixos90.
Fixes #62378.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 17:01:26 +00:00
Sergey Biryukov
91f31a5169 Docs: Correct the type for transition_comment_status action parameters.
By the time this hook runs, the `$new_status` and `$old_status` values can only be a string.

Follow-up to [26491].

See #62281.
Built from https://develop.svn.wordpress.org/trunk@59871


git-svn-id: http://core.svn.wordpress.org/trunk@59213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-26 15:03:25 +00:00
audrasjb
365645c608 Date/Time: Add sanitization to WP_Locale::get_month().
By adding a sanitization to `$wp_locale->get_month()`, this changeset prevents a PHP Warning: `Undefined array key "00"` caused by `single_month_title()`. This function previously assumed that `get_query_var( 'm' )` is always at least 6 digits, and always contains the year and the month, which is not necessarily true.

Props apermo, audrasjb, xateman.
Fixes #62824.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-25 22:40:22 +00:00
audrasjb
f35df6f37a Build/Test Tools: Add tests for theme-related body classes.
This changeset adds new unit test cases following [59698].

Props sukhendu2002.
Fixes #19736.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-25 22:07:22 +00:00
audrasjb
601df51eb8 Help/About: Replace "Support" with "Support Forums" in import.php help tab.
This brings consistency with other admin screens.

Props Guido07111975, audrasjb, sabernhardt.
Fixes #63016.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-25 18:34:15 +00:00
Sergey Biryukov
4f774af5e8 Coding Standards: Use strict comparison in wp_transition_comment_status().
Follow-up to [9195].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59867


git-svn-id: http://core.svn.wordpress.org/trunk@59209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-25 17:51:24 +00:00