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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59897 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59893 602fd350-edb4-49c9-b593-d223f7449a82
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
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59891 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59890 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59888 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59886 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59885 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59884 602fd350-edb4-49c9-b593-d223f7449a82
The accepted value is `WP_Comment::$comment_approved`, which is documented as a string.
Follow-up to [38832], [33891], [39015], [59805], [59871].
See #62281.
git-svn-id: https://develop.svn.wordpress.org/trunk@59882 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59879 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59878 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59877 602fd350-edb4-49c9-b593-d223f7449a82
This reverts the lighter font-weight update that was committed in [59709] to give it more time for testing and feedback.
Fixes#62865.
git-svn-id: https://develop.svn.wordpress.org/trunk@59876 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59875 602fd350-edb4-49c9-b593-d223f7449a82
[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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59874 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59873 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59872 602fd350-edb4-49c9-b593-d223f7449a82
By the time this hook runs, the `$new_status` and `$old_status` values can only be a string.
Follow-up to [26491].
See #62281.
git-svn-id: https://develop.svn.wordpress.org/trunk@59871 602fd350-edb4-49c9-b593-d223f7449a82
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@59870 602fd350-edb4-49c9-b593-d223f7449a82
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#62908.
git-svn-id: https://develop.svn.wordpress.org/trunk@59866 602fd350-edb4-49c9-b593-d223f7449a82
Renames the variable `$cache_key` to `$cache_group` in `update_meta_cache()` for accuracy.
Follow up to [11943].
See #62279.
git-svn-id: https://develop.svn.wordpress.org/trunk@59862 602fd350-edb4-49c9-b593-d223f7449a82
This changeset removes the `presentation` role from the Site Health debug tab tables to switch them into regular data tables, and updates the related stylesheet to keep the previously used styles.
Props audrasjb, hbhalodia, rvouill, mukesh27, sabernhardt, joedolson, alexstine.
Fixes#62880.
git-svn-id: https://develop.svn.wordpress.org/trunk@59859 602fd350-edb4-49c9-b593-d223f7449a82
Fix the source positioning of the skip link in Twenty Ten and add CSS for visibility on focus.
Props anonymized_3085, iammattthomas, joedolson, sabernhardt, shailu25, mukesh27, poena.
Fixes#14795.
git-svn-id: https://develop.svn.wordpress.org/trunk@59857 602fd350-edb4-49c9-b593-d223f7449a82
On the Twenty Twenty-One theme, this changeset adds `aria-controls` attribute to sub-menu buttons and an `id` to the sub-menu wrapper for additional context on what is being expanded.
Props bschneidewind, audrasjb, anandraj346.
Fixes#62973.
git-svn-id: https://develop.svn.wordpress.org/trunk@59856 602fd350-edb4-49c9-b593-d223f7449a82
Add support handling an empty string in the `$suffix` parameter that allows a file name to be generated with no suffix added. This makes it possible to avoid adding irrelevant suffixes in cases like converting image formats.
Props azaozz, debarghyabanerjee, joedolson.
See #62359.
Fixes#62385.
git-svn-id: https://develop.svn.wordpress.org/trunk@59855 602fd350-edb4-49c9-b593-d223f7449a82
This changeset enhances the filesystem checks in the Site Health debug data by addressing the following:
- Existence Check: Before checking if the fonts directory is writable, it first verifies whether the directory exists.
- Improved Messaging: If the fonts directory does not exist, the debug output now reflects this scenario as "Does not exist". If the directory exists, it shows whether it is writable or not.
Props zodiac1978, samiamnot, sainathpoojary, abcd95, ankitkumarshah, im3dabasia1.
Fixes#62633.
git-svn-id: https://develop.svn.wordpress.org/trunk@59853 602fd350-edb4-49c9-b593-d223f7449a82
This changeset replaces `array_map( 'urlencode', $query_args )` with `urlencode_deep( $query_args )` in `twentyfourteen_paging_nav()` to prevent a fatal error when an array is provided in the query vars.
Props takayukister, pratiklondhe, rinkalpagdar.
Fixes#62972.
git-svn-id: https://develop.svn.wordpress.org/trunk@59851 602fd350-edb4-49c9-b593-d223f7449a82
This changeset brings more consistency by capitalizing the "Edit Site" strings located in the Toolbar and on the Site Editor screen.
Props bronsonquick, sabernhardt, audrasjb, peterwilsoncc, adamsilverstein.
Fixes#62971.
git-svn-id: https://develop.svn.wordpress.org/trunk@59850 602fd350-edb4-49c9-b593-d223f7449a82