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
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
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
[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
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
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
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
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.
Built from https://develop.svn.wordpress.org/trunk@59866
git-svn-id: http://core.svn.wordpress.org/trunk@59208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59859
git-svn-id: http://core.svn.wordpress.org/trunk@59201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59856
git-svn-id: http://core.svn.wordpress.org/trunk@59198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59855
git-svn-id: http://core.svn.wordpress.org/trunk@59197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59853
git-svn-id: http://core.svn.wordpress.org/trunk@59195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59851
git-svn-id: http://core.svn.wordpress.org/trunk@59193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.
Built from https://develop.svn.wordpress.org/trunk@59850
git-svn-id: http://core.svn.wordpress.org/trunk@59192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
`wp-prettier` was out of date and no longer compatible with wp-scripts. Additionally, many generated files and plugins were not being properly ignored which could cause linting to take so long that it was basically unusable.
Props ankitkumarshah, jorbin.
See #62935.
Built from https://develop.svn.wordpress.org/trunk@59848
git-svn-id: http://core.svn.wordpress.org/trunk@59190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Remove a limitation that prevented PNG uploads from generating the full sized image. Fixes a bug where using the image_editor_output_format filter would not generate full sized images as expected. The removed code was present to prevent overly large PNG image output, however this issue was resolved separately in #36477.
Props: adamsilverstein, pixlpirate, flixos90, mukesh27, azaozz.
Fixes#62900.
Built from https://develop.svn.wordpress.org/trunk@59844
git-svn-id: http://core.svn.wordpress.org/trunk@59186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This change updates the padding, line height, and text color of the button in the file block,
so that the styling is not overriden by the link styles.
Props poena, sainathpoojary, mai21, parthvataliya, devtanbir, ankitkumarshah, sabernhardt, shailu25.
Fixes#62793.
Built from https://develop.svn.wordpress.org/trunk@59843
git-svn-id: http://core.svn.wordpress.org/trunk@59185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This change updates the Left-aligned Large Quote pattern to use the quote block instead of
paragraph blocks.
Props flairwebtechnologies, sabernhardt, karmatosed, wpeople, poena, nithins53, balub, sukhendu2002, dilip2615, itpathsolutions, shraddhagore, shailu25.
Fixes#61765.
Built from https://develop.svn.wordpress.org/trunk@59842
git-svn-id: http://core.svn.wordpress.org/trunk@59184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce a new function, `apply_block_hooks_to_content_from_post_object`, to colocate the logic used to temporarily wrap content in a parent block (with `ignoredHookedBlocks` information fetched from post meta) alongside the call to `apply_block_hooks_to_content`. Fetching that information from post meta is required for all block types that get their content from post objects, i.e. Post Content, Synced Pattern, and Navigation blocks.
Additionally, the newly introduced function contains logic to ensure that insertion of a hooked block into the `first_child` or `last_child` position of a given Post Content block works, even if that block only contains "classic" markup (i.e. no blocks).
Props bernhard-reiter, gziolo, mamaduka.
Fixes#61074, #62716.
Built from https://develop.svn.wordpress.org/trunk@59838
git-svn-id: http://core.svn.wordpress.org/trunk@59180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This changeset adds support for the Speculation Rules API and configures it by default to `prefetch` certain links with an eagerness of `conservative`, leading to improved performance by starting to load URLs before the user lands on them.
The new `WP_Speculation_Rules` class is a container class representing the set of used speculation rules. By default, WordPress Core will only add a single speculation rule, which results in most links being prefetched conservatively.
The behavior of that main speculation rule can be altered by using the new `wp_speculation_rules_configuration` filter, which receives an associative array with `mode` and `eagerness` keys, or `null`. Both `mode` and `eagerness` have a default value of `auto`, which for now will result in the aforementioned behavior. The value `null` is used by default in certain scenarios such as when the current user is logged in. Developers can explicitly provide supported mode values (`prefetch` or `prerender`) and other supported eagerness values (`conservative`, `moderate`, or `eager`) to override and enforce the respective behaviors, or return `null` to disable speculative loading feature (either unconditionally or for certain situations). The Speculative Loading feature plugin for example, which this feature is based on, will make use of this filter to continue to use mode `prerender` and eagerness `moderate` by default. Developers can call the `wp_get_speculation_rules_configuration()` function to check how speculative loading is configured on the WordPress site.
Another important filter introduced is `wp_speculation_rules_href_exclude_paths`, which allows to expand the list of URL patterns that are excluded from being prefetched or prerendered per WordPress Core's main speculation rule configuration. Several URL patterns such `/wp-admin/*` (any URL within WP Admin) or `/*\\?(.+)` (any URL that includes query parameters) are already excluded by default. Plugins that use content that would be preferable not to prefetch or prerender can use the filter to provide corresponding URL patterns.
More advanced customization is possible by adding further speculation rules that will be loaded in addition to WordPress Core's main speculation rule. This can be achieved via the new `wp_load_speculation_rules` action, which receives the `WP_Speculation_Rules` class instance and can amend it as needed.
Props flixos90, westonruter, joemcgill, desrosj, mukesh27, tunetheweb, thelovekesh, adamsilverstein, swissspidy, domenicdenicola, jeremyroman.
Fixes#62503.
Built from https://develop.svn.wordpress.org/trunk@59837
git-svn-id: http://core.svn.wordpress.org/trunk@59179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This changeset replaces the `word-break: break-all` CSS declaration added to the `.upload-error-filename` element with the common class `word-wrap-break-word`, for better maintainability.
Follow-up to [59834].
Props sabernhardt.
Fixes#62980.
Built from https://develop.svn.wordpress.org/trunk@59835
git-svn-id: http://core.svn.wordpress.org/trunk@59177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This changeset resolves an issue where long filenames in the media uploader modal would overflow their container. By adding `word-break: break-all;` to the `.upload-error-filename` class, filenames now properly break into multiple lines.
Props kharisblank, audrasjb, sainathpoojary.
Fixes#62980.
Built from https://develop.svn.wordpress.org/trunk@59834
git-svn-id: http://core.svn.wordpress.org/trunk@59176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Remove references to the obsolete style property `clip: rect(1px, 1px, 1px, 1px);` and replace or adapt to use `clip-path: inset(50%);`. Update associated `:focus` styles as appropriate. Remove prefixed instances of `-webkit-clip-path`.
Props afercia, hbhalodia, audrasjb, joedolson, sabernhardt.
Fixes#62238.
Built from https://develop.svn.wordpress.org/trunk@59832
git-svn-id: http://core.svn.wordpress.org/trunk@59174 1a063a9b-81f0-0310-95a4-ce76da25c4cd