50807 Commits

Author SHA1 Message Date
Joe Dolson
8731d62dc7 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59914 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 20:35:34 +00:00
Joe Dolson
c1d2a5d18d 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59913 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 20:23:49 +00:00
Joe Dolson
81743366e7 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59912 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 20:20:47 +00:00
Joe Dolson
5aa3534c2d 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59911 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 20:06:03 +00:00
Jb Audras
f578d8ebab 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59910 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 20:05:52 +00:00
Jb Audras
7903c32edf Docs: Param indentation improvements in get_calendar() function and hooks.
See .



git-svn-id: https://develop.svn.wordpress.org/trunk@59909 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 19:57:16 +00:00
Jb Audras
2b697b8f21 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59908 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 19:54:34 +00:00
Joe Dolson
4452b6707e 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59907 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 18:43:08 +00:00
Joe McGill
bc1bdb3a06 Editor: Update packages for 6.8 Beta 1.
Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, desrosj.
See .


git-svn-id: https://develop.svn.wordpress.org/trunk@59906 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 18:06:16 +00:00
Joe McGill
4ed2a8b128 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59905 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 17:20:36 +00:00
John Blackbourn
b5e0c16c04 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 

git-svn-id: https://develop.svn.wordpress.org/trunk@59904 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 09:49:36 +00:00
Pascal Birchler
1b236aa435 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59903 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 09:03:26 +00:00
Joe Dolson
b4f0fc916e 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59902 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-03 00:17:08 +00:00
Peter Wilson
cad2f8cff9 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59901 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 23:33:56 +00:00
Peter Wilson
e30ab16337 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59900 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 23:04:23 +00:00
Timothy Jacobs
1c2a87b294 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 .
Props antonvlasenko, janusdev, ironprogrammer, swissspidy, spacedmonkey, mukesh27, mamaduka, timothyblynjacobs.



git-svn-id: https://develop.svn.wordpress.org/trunk@59899 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 22:05:08 +00:00
Sergey Biryukov
c19e4a45c2 Coding Standards: Use strict comparison in wp_insert_comment().
Follow-up to [3104], [3193], [3887].

Props aristath, poena, afercia, SergeyBiryukov.
See .

git-svn-id: https://develop.svn.wordpress.org/trunk@59898 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 19:46:43 +00:00
Joe Dolson
1964aec667 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 .
Fixes .

git-svn-id: https://develop.svn.wordpress.org/trunk@59897 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 18:53:33 +00:00
John Blackbourn
3e56dfc905 Docs: Various improvements to inline documentation.
See 

git-svn-id: https://develop.svn.wordpress.org/trunk@59896 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 00:41:48 +00:00
John Blackbourn
f6b55440a6 Security: Add some test files that were missed in [59828].
See 

git-svn-id: https://develop.svn.wordpress.org/trunk@59895 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-02 00:35:45 +00:00
Sergey Biryukov
7e13238bf9 Site Health: Fix typo in the robots.txt check messages.
Follow-up to [59890].

See .

git-svn-id: https://develop.svn.wordpress.org/trunk@59894 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-01 00:27:21 +00:00
John Blackbourn
360732e132 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59893 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 18:51:44 +00:00
Joe McGill
bcaaa16a1f 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@59892 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 18:19:21 +00:00
Tammie Lister
980f2541aa 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59891 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 17:05:16 +00:00
Aaron Jorbin
73c0f0ba72 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59890 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 16:56:57 +00:00
Jb Audras
57828fa0de General: Add missing space before checked attributes in various WP_Screen functions.
Props kkmuffme, audrasjb. 
Fixes .



git-svn-id: https://develop.svn.wordpress.org/trunk@59889 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 14:59:53 +00:00
Jb Audras
3f82512e5c 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59888 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 13:28:01 +00:00
Sergey Biryukov
46399d6eb3 Coding Standards: Use strict comparison in privacy_ping_filter().
Follow-up to [3548], [3885].

Props aristath, poena, afercia, SergeyBiryukov.
See .

git-svn-id: https://develop.svn.wordpress.org/trunk@59887 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-28 11:25:15 +00:00
Peter Wilson
e7ce9bbfbf 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59886 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 23:17:38 +00:00
Peter Wilson
83b90808e9 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59885 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 23:08:10 +00:00
Jb Audras
e784437d42 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59884 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 23:02:47 +00:00
Jb Audras
dd514da169 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59883 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 22:42:14 +00:00
Sergey Biryukov
cc141f9a6b 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59882 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 22:39:08 +00:00
Felix Arntz
e807a7cbe0 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 .
See .


git-svn-id: https://develop.svn.wordpress.org/trunk@59881 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 22:12:10 +00:00
George Mamadashvili
b45e379d21 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59880 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 03:37:22 +00:00
Jb Audras
4412481f06 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59879 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 00:26:03 +00:00
Jb Audras
526e385e5c 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59878 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-27 00:07:07 +00:00
Jb Audras
bbdd9fb4a9 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59877 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 23:48:24 +00:00
Jb Audras
b607715ba7 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59876 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 22:53:42 +00:00
Jb Audras
cf5898957e 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59875 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 21:45:24 +00:00
Felix Arntz
8b5816b914 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 .
See .


git-svn-id: https://develop.svn.wordpress.org/trunk@59874 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 19:38:08 +00:00
Jonathan Desrosiers
d8ba90eacf 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59873 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 18:47:26 +00:00
Joe McGill
cf198e8fc5 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 .


git-svn-id: https://develop.svn.wordpress.org/trunk@59872 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 16:59:42 +00:00
Sergey Biryukov
8c7fe3c809 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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@59871 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-26 15:01:52 +00:00
Jb Audras
12eaef1dd9 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 .



git-svn-id: https://develop.svn.wordpress.org/trunk@59870 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-25 22:38:42 +00:00
Jb Audras
0735741b77 Build/Test Tools: Add tests for theme-related body classes.
This changeset adds new unit test cases following [59698].

Props sukhendu2002.
Fixes .



git-svn-id: https://develop.svn.wordpress.org/trunk@59869 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-25 22:05:12 +00:00
Jb Audras
1af6d01b03 Help/About: Replace "Support" with "Support Forums" in import.php help tab.
This brings consistency with other admin screens.

Props Guido07111975, audrasjb, sabernhardt.
Fixes .




git-svn-id: https://develop.svn.wordpress.org/trunk@59868 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-25 18:32:51 +00:00
Sergey Biryukov
d9846f86b1 Coding Standards: Use strict comparison in wp_transition_comment_status().
Follow-up to [9195].

Props aristath, poena, afercia, SergeyBiryukov.
See .

git-svn-id: https://develop.svn.wordpress.org/trunk@59867 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-25 17:49:25 +00:00
George Mamadashvili
69378cc472 Editor: Add option to ignore sticky posts in Query block.
Introduce a new `ignore` value for the `sticky` query argument. When this value is used, the query will not prepend sticky posts at the top but display them in the natural order.

Props mamaduka, peterwilsoncc, audrasjb, mikinc860, poena, dhruvishah2203, joemcgill.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/trunk@59866 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-25 05:10:31 +00:00
John Blackbourn
54e97c4c9a Docs: Various improvements to inline documentation.
See 

git-svn-id: https://develop.svn.wordpress.org/trunk@59865 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-24 13:41:07 +00:00