Commit Graph

25757 Commits

Author SHA1 Message Date
audrasjb
650e77076d Networks and Sites: Don't automatically mark website as spam when an account is marked as spam.
This changeset does the following:
- Explicitly add `403` to `wp_die()` calls for unauthorized actions
- Introduce the `network_user_spam_propagate_to_blogs` filter to provide flexibility for developers to control spam status propagation
- Use `is_super_admin()` checks for both "spam" and "notspam" actions to prevent unauthorized modification of network administrators
- Refine the "notspam" logic to ensure that blog status updates are correctly scoped to the current network
- Add related unit tests coverage

Props ignatiusjeroe, realloc, johnjamesjacoby, westonruter, mukesh27, pratiknawkar94, anukasha.
Fixes #61146.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-17 09:25:40 +00:00
luisherranz
1144a460c8 Interactivity API: populate router's state.url in the server
Set the `core/router` state `url` property with the current page URL using `get_self_link()` when the first `data-wp-router-region` directive is processed, so that the stores subscribing to that property already have the correct value on page load.

Props westonruter.
Fixes #64649.
Built from https://develop.svn.wordpress.org/trunk@61659


git-svn-id: http://core.svn.wordpress.org/trunk@60970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-17 08:46:42 +00:00
audrasjb
7c21be66d0 Menus: Prevent error in Menu location checkbox settings.
This changeset avoids throwing a PHP error when an invalid ID is assigned to a menu location, creates a text string to display when using an invalid menu ID, and assigns `id` and `aria-describedby` attributes to connect the `span` element with the related checkbox.

Props skylarkcob, Frozzare, sabernhardt, apermo, SirLouen, audrasjb, mukesh27, westonruter.
Fixes #37026.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-17 06:47:40 +00:00
Weston Ruter
0998c036c8 Docs: Add missing @global descriptions and refine parameter documentations in wp-admin/includes classes.
Developed in https://github.com/WordPress/wordpress-develop/pull/10931

Follow-up to [61638].

Props noruzzaman, huzaifaalmesbah, westonruter.
See #64224.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-17 06:05:41 +00:00
Weston Ruter
66183838bf Users: Ensure user data supplied to wp_insert_user() is normalized to an array.
This fixes an issue where PHPStan hangs when analyzing the containing `users.php` file.

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

Follow-up to [60650].

Props westonruter, justlevine, peterwilsoncc.
See #64238, #61175.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-17 05:49:41 +00:00
isabel_brison
779de85a95 Editor: fix grid layout for style variations defining blockGap.
Ensures the grid block columns computation takes into account any blockGap value output by an active block style variation.

Props isabel_brison, mukesh27, westonruter, andrewserong.
Fixes #64624.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 23:51:42 +00:00
Sergey Biryukov
0cbb3f5744 Twenty Twenty-One: Remove EscapeOutput annotations.
These are from the `WordPress-Extra` standard, which is not included in the `phpcs.xml.dist` configuration (the repository uses `WordPress-Core`).

Includes removing unnecessary `WPThemeReview` annotations carried over from upstream.

Follow-up to [49216].

Props rodrigosprimo.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61654


git-svn-id: http://core.svn.wordpress.org/trunk@60965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 22:38:42 +00:00
luisherranz
61b3e1a837 Interactivity API: Use the private router store for the loading bar markup.
Update the `data-wp-interactive` directive in the loading bar from `core/router` to `core/router/private` so that internal navigation state properties (`hasStarted`, `hasFinished`) are not exposed as part of the public `core/router` store API.

Props westonruter.
Fixes #64647.
Built from https://develop.svn.wordpress.org/trunk@61653


git-svn-id: http://core.svn.wordpress.org/trunk@60964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 21:03:40 +00:00
joedolson
9c13eca1c3 Admin: Update focus styles to match design reskin.
Apply design reskin changes to focus states on links, classic editor, media library, and other omitted contexts.

See also [61645].

Props joedolson, fabiankaegy.
Fixes #64644.
Built from https://develop.svn.wordpress.org/trunk@61652


git-svn-id: http://core.svn.wordpress.org/trunk@60963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 17:24:42 +00:00
joedolson
b88c13e108 Users: Set username, email, and password fields to ltr.
Usernames, email, and password fields are currently `rtl` in `rtl` locales. However, these fields are primarily standardized to `ltr` character sets and for better experience and readability, should be presented left-to-right in all locales.

Fix username, email, and password fields throughout install and admin to be set to `ltr` text direction.

Props man4toman, sabernhardt, ierwira, agnieszkaszuba, SergeyBiryukov, joyously, hellofromTonya, shibleemehdi, oglekler, audrasjb, sajjad67, huzaifaalmesbah, joedolson.
Fixes #54915.
Built from https://develop.svn.wordpress.org/trunk@61651


git-svn-id: http://core.svn.wordpress.org/trunk@60962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 17:02:47 +00:00
ntsekouras
821a799e07 Editor: Update build_query_vars_from_query_block to handle new taxQuery structure.
The Query Loop block's `taxQuery` attribute now supports an include/exclude structure for term filtering. This updates the server-side query building to handle both the old format (e.g. `{"category":[4]}`) and the new format (e.g. `{"include":{"category":[4]},"exclude":{"post_tag":[5]}}`).

Props ntsekouras, westonruter, peterwilsoncc, mcsf.
Fixes #64416.
Built from https://develop.svn.wordpress.org/trunk@61650


git-svn-id: http://core.svn.wordpress.org/trunk@60961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-16 13:12:41 +00:00
Sergey Biryukov
27cecce3ff Docs: Add missing null to $post parameter types in various functions.
Props apermo.
Fixes #64645.
Built from https://develop.svn.wordpress.org/trunk@61649


git-svn-id: http://core.svn.wordpress.org/trunk@60960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 23:18:43 +00:00
joedolson
5185b05367 Menus: Improve consistency in describing menu locations.
Menu locations are referred to in various places as 'menu location', 'theme location', or 'display location'.

In some cases these are clear, because both menus and locations are described in the same text. But in other cases they are ambiguous.

Clarify ambiguous uses of 'theme location' and 'menu location' in text.

Props pavelevap, sabernhardt, DrewAPicture, egill, bridgetwillard, obenland, joedolson.
Fixes #33743.
Built from https://develop.svn.wordpress.org/trunk@61648


git-svn-id: http://core.svn.wordpress.org/trunk@60959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 19:23:44 +00:00
fabiankaegy
00a46b6006 Admin: Update notice styles to align with the design system.
Remove the full border and box-shadow from notices, keeping only the 4px left border. Add semantic background colors to each notice type: green for success, yellow for warnings, red for errors, and transparent for info. Update border colors to match the design system tokens.

Restyle the dismiss button with a larger 24px icon, flexbox centering, and 2px border-radius. Replace the red hover color with a subtle opacity change and apply a theme-color focus ring. Increase dismissible notice right padding to accommodate the larger button.

Update notice text with consistent typography and restyle notice links to use theme color custom properties with matching focus rings.

Props fabiankaegy, mukesh27, joedolson, phpbits, sabernhardt, Joen, fcoveram, dkotter, navi161, poojapadamad.
Fixes #64548.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 08:24:37 +00:00
fabiankaegy
d4c1af9ecb Admin: Update card and container styles to align with the design system.
Apply 8px border-radius and a consistent `rgb(0, 0, 0, 0.1)` border to cards, postboxes, plugin cards, and theme cards. Standardize internal padding to 16px for postbox content and headers.

Update drag-and-drop interactions: replace dashed gray outlines on sortable drop zones with theme-color-tinted backgrounds, and restyle sortable placeholders with a solid theme-color border and subtle background fill.

Adjust dashboard widget spacing, welcome panel padding, and empty-container drop zone styles. Add overflow hidden to plugin and theme cards to clip content to the new rounded corners.

Props fabiankaegy, mukesh27, joedolson, navi161, phpbits, karmatosed, sabernhardt, poojapadamad, psorensen, generosus.
Fixes #64549.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 08:18:36 +00:00
fabiankaegy
cc0fed3547 Admin: Update button and form field styles to align with the design system.
Introduce a design system tokens file (`_tokens.scss`) based on the WordPress Design System, providing standardized values for colors, spacing, typography, border-radius, and elevation.

Update buttons to use CSS custom properties for theme color support across all admin color schemes. Restyle primary buttons with filled theme-color backgrounds, secondary buttons with outlined borders, and add a tertiary button mixin. Adopt Gutenberg-style focus rings with outset box-shadows and transparent outlines for Windows High Contrast mode compatibility.

Increase default input and select height from 30px to 40px, apply 2px border-radius, and update border and placeholder colors to match the design system. Restyle checkboxes and radios with filled theme-color checked states and white indicator marks, using outset double-ring focus styles consistent with Gutenberg.

Apply compact 32px sizing to list table controls, page-title-action buttons, and toolbar elements. Convert tag input layouts and the major-publishing-actions bar to flexbox.

Props fabiankaegy, joedolson, audrasjb, joen, phpbits, magaliechetrit, karmatosed.
Fixes #64547.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 08:10:37 +00:00
fabiankaegy
74089b9eb1 Admin: Change the default admin color scheme to Modern.
Rename the 'Modern' color scheme to 'Default' and the previous 'Default' scheme to 'Fresh'. Update all fallback references from 'fresh' to 'modern' across admin headers, the Customizer, the color scheme picker, the script loader, and user functions.

Add an upgrade routine in `upgrade_700()` to migrate existing users with the 'fresh' admin color to 'modern'.

Props fabiankaegy, audrasjb, mukesh27, westonruter, peterwilsoncc, jorbin, sabernhardt, joedolson, phpbits.
Fixes #64546.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-15 08:02:41 +00:00
Sergey Biryukov
f441dd1965 Twenty Twenty: Remove EscapeOutput annotations.
These are from the `WordPress-Extra` standard, which is not included in the `phpcs.xml.dist` configuration (the repository uses `WordPress-Core`).

Includes removing unnecessary `WordPress.WP.CapitalPDangit.Misspelled` annotation on the `wordpress` array key, as the `CapitalPDangit` sniff skips array definitions by design.

Follow-up to [46271], [46445].

Props rodrigosprimo.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61643


git-svn-id: http://core.svn.wordpress.org/trunk@60954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-14 23:46:42 +00:00
Weston Ruter
41985d47d6 Code Quality: Remove unused WP_Block_Bindings_Registry::$supported_blocks private member variable.
Developed in https://github.com/WordPress/wordpress-develop/pull/10912

Follow-up to [59080], [57641].

Props soean.
See #64238, #61642.
Fixes #64633.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-14 00:37:41 +00:00
Sergey Biryukov
bb157e9e4b Coding Standards: Remove unnecessary annotations for __ngettext() and __ngettext_noop().
Since PHPCompatibility 9.3.2, the `ReservedFunctionNames` sniff skips functions with a `@deprecated` tag.

Reference: [https://github.com/PHPCompatibility/PHPCompatibility/pull/917 WPCS: ReservedFunctionNames: ignore deprecated functions].

Follow-up to [46290].

Props rodrigosprimo.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61641


git-svn-id: http://core.svn.wordpress.org/trunk@60952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 23:59:40 +00:00
Weston Ruter
1697d0d649 Code Quality: Remove unnecessary array check for value return in WP_Theme_JSON::get_property_value().
Developed in https://github.com/WordPress/wordpress-develop/pull/10928

Follow-up to https://github.com/WordPress/gutenberg/commit/ccd529d7a6af

Props soean, mukesh27, westonruter.
Fixes #64636.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 20:54:46 +00:00
Weston Ruter
9d27805012 Cron API: Improve documentation on matching event arguments to avoid duplicate entries.
This harmonizes and clarifies the documentation for the `$args` parameter in `wp_schedule_event()`, `wp_schedule_single_event()`, `wp_reschedule_event()`, `wp_unschedule_event()`, `wp_clear_scheduled_hook()`, and `wp_next_scheduled()`, to emphasize the requirement for matching arguments and the risks of mismatching them.

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

Props manishxdp, westonruter, ovidiul, digamberpradhan.
Fixes #43801.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 20:26:40 +00:00
Weston Ruter
e23994324f Docs: Add missing @global variable descriptions.
Developed in https://github.com/WordPress/wordpress-develop/pull/10864

Follow-up to [61604], [61592].

Props noruzzaman, huzaifaalmesbah, shailu25, sabernhardt, westonruter.
See #64224.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 18:34:41 +00:00
Weston Ruter
702895761a Code Modernization: Use null coalescing operator instead of ternaries where possible.
Developed in https://github.com/WordPress/wordpress-develop/pull/10911

Follow-up to [61621], [61464].

Props soean, westonruter.
See #63430.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 17:52:44 +00:00
joedolson
e42b68c0b4 A11y: Update .screen-reader-text class with word-break.
`word-break: normal !important;` was added to Twenty Twenty in [46701], but the change missed getting propagated to all uses of the screen-reader-text class at that time. 

Add `word-break` reset to `.screen-reader-text` to ensure screen readers won't read text as individual letters in hidden text.

Props peterwilsoncc, manhphucofficial, palak678, sabernhardt, mukesh27, joedolson.
Fixes #64375.
Built from https://develop.svn.wordpress.org/trunk@61636


git-svn-id: http://core.svn.wordpress.org/trunk@60947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 17:12:44 +00:00
joedolson
6d61ccdc29 Twenty Twenty One: Remove Skiplink shim for Internet Explorer.
No version of Internet Explorer is still supported by WordPress or Microsoft. Usage of Internet Explorer has dropped to about 0.1%.

Follow up to [61628] to also remove JS that fixed skip link behavior for IE. Also remove overlooked contents of `ie-editor.css.map`.

Props sabernhardt, westonruter, joedolson.
Fixes #64590.
Built from https://develop.svn.wordpress.org/trunk@61635


git-svn-id: http://core.svn.wordpress.org/trunk@60946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 16:14:43 +00:00
wildworks
e3a446c81e Administration: Update Site Editor URLs to use path-based format.
Updates Site Editor URLs from legacy query parameters to the new path-based p parameter format. 

Props jabir20, phpbits, sainathpoojary, SirLouen, westonruter, wildworks.
Fixes #63110.
Built from https://develop.svn.wordpress.org/trunk@61634


git-svn-id: http://core.svn.wordpress.org/trunk@60945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 11:49:41 +00:00
Peter Wilson
87526b17d2 Users: Ensure switching to current user doesn't reinstantiate current user.
Prevent `wp_set_current_user()` from reinstantiating the current user when the user ID is passed as a string, eg `wp_set_current_user( (string) get_current_user_id() )`.

This restores the function's previous behaviour of returning early in the event the IDs loosely match.

Follow up to r57882.

Props westonruter, peterwilsoncc.
Fixes #64628.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 02:42:40 +00:00
ramonopoly
79f00e3f55 Block Supports: Add text indent to typography supports
This commit adds CSS text-indent support for paragraph blocks with traditional typography conventions - subsequent paragraphs get first-line indented in LTR languages, with an option to indent all paragraphs (default for RTL languages).

Text indentation is a fundamental typography feature. Traditional print typography conventions dictate that only subsequent paragraphs (not the first) should have their first line indented in LTR languages, while RTL languages typically indent all paragraphs. This feature enables proper typographic styling that matches publishing standards.

Props aaronrobertshaw, ramonopoly, andrewserong, wildworks, matveb, skorasaurus, greenshady, kjellr.

Fixes #64326.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 01:52:41 +00:00
ramonopoly
1b208a0253 Block Supports: Add presets support for dimensions block supports
This commit enables dimension size presets to theme.json for block supports such as width, height and min-height.

This opens up the ability to leverage a defined set of preset values for dimensions block supports, alleviating the need for users to know and manually set the same value across multiple blocks.

Props aaronrobertshaw, ramonopoly, andrewserong.

Fixes #64413.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-13 00:56:42 +00:00
Sergey Biryukov
bfaa630f7e Twenty Nineteen: Remove a legacy WPCS annotation.
References:
* [https://github.com/WordPress/WordPress-Coding-Standards/pull/1580 WPCS: Deprecate use of the WPCS native whitelist comments]
* [https://github.com/WordPress/WordPress-Coding-Standards/pull/1908 WPCS: 3.0: Remove deprecated Sniff::has_whitelist_comment() method and all references to it]

Follow-up to [43808].

Props rodrigosprimo, mukesh27.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61630


git-svn-id: http://core.svn.wordpress.org/trunk@60941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 21:14:39 +00:00
Weston Ruter
7776fd2008 Coding Standards: Use tabs for indentation and remove trailing line whitespace in QUnit test.
Follow-up to [61625], [60516].

See #63126.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 21:08:42 +00:00
joedolson
f10e67cd22 Twenty Twenty One: Remove support for Internet Explorer.
No version of Internet Explorer is still supported by WordPress or Microsoft. Usage of Internet Explorer has dropped to about 0.1%.

Remove IE-specific CSS and polyfills.

Props sabernhardt, westonruter, mukesh27, joedolson.
Fixes #64590.
Built from https://develop.svn.wordpress.org/trunk@61628


git-svn-id: http://core.svn.wordpress.org/trunk@60939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 19:57:57 +00:00
Weston Ruter
5d6f43a161 Docs: Update broken link in core merge comment.
Follow-up to [41376], [41260].

Props mayur8991, sabernhardt, westonruter.
Fixes #64632.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 19:42:39 +00:00
joedolson
f429cb6d35 Media: A11y: Remove tabindex on tabpanels.
Tabindex should be set on a tabpanel if there is content in that tabpanel that is not focusable. The media library uses tabpanels, but the first content is either focusable or redundant.

Change the media library tabpanels to omit tabindex attributes.

Props alh0319, joedolson, westonruter, huzaifaalmesbah.
Fixes #63984.
Built from https://develop.svn.wordpress.org/trunk@61626


git-svn-id: http://core.svn.wordpress.org/trunk@60937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 19:34:41 +00:00
jonsurrell
44ab6e2d12 Build/Test Tools: Add theme keyboard navigation tests.
Add the theme keyboard navigation test file that omitted from [60516].

Follow-up to [60516].

Props abcd95, jonsurrell, mukesh27.
See #64225, #63126.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 15:58:40 +00:00
jonsurrell
6109c149d5 HTML API: Use more universal syntax to call Closure variable.
Replace `( $fn )( ...$args )` syntax with equivalent `call_user_func( $fn, ...$args )` to prevent an issue with the WordPress documentation parser. The parser would fail when encountering this syntax, preventing documentation generation.

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

Follow-up to [58304].

Props dmsnell, jonsurrell.
See #64224, #61348.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 15:48:42 +00:00
get_dave
576b839129 Block Editor: Use navigation-overlay icon for
template part areas.

  Updates the Navigation Overlay template part area in
  get_allowed_block_template_part_areas() to use the dedicated
  navigation-overlay icon, replacing the overlay placeholder value.

  The icon has been updated in @wordpress/icons and will be synced
  to Core with the final Gutenberg release.

  Props mikachan, get_dave.
  Fixes #64629.
Built from https://develop.svn.wordpress.org/trunk@61623


git-svn-id: http://core.svn.wordpress.org/trunk@60934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 11:26:38 +00:00
wildworks
52c0495ff5 Editor: Update Google Fonts API endpoint for WordPress 7.0.
Props dd32, mikachan, peterwilsoncc, wildworks.
Fixes #64564.
Built from https://develop.svn.wordpress.org/trunk@61622


git-svn-id: http://core.svn.wordpress.org/trunk@60933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 10:49:41 +00:00
Weston Ruter
d5eed3cfaf Code Modernization: Use null coalescing operator and improve readability of conditional in WP_Theme_JSON::get_styles_for_block().
Developed in https://github.com/WordPress/wordpress-develop/pull/10902

Follow-up to [61607].

Props soean, westonruter, sergeybiryukov, mukesh27.
See #63430, #64263.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 07:41:40 +00:00
ramonopoly
7ea02a0d5f Block Supports: Add height to dimensions supports
This PR introduces `dimensions.height` to the list of available block supports.

This block support enables, in the future, the removal of the custom height controls in blocks such as Image, Spacer and others in favor of customizations via block supports.

Props aaronrobertshaw, andrewserong, ramonopoly, welcher, wildworks, youknowriad.

Fixes #64202.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 05:44:41 +00:00
ramonopoly
91eead7abb Block Supports: Add width to dimensions supports
This PR introduces `dimensions.width` to the list of available block supports.

This block support enables, in the future, the removal of the custom width and height controls in blocks such as Button, Column and many others in favor of customizations via block supports.

Props aaronrobertshaw, andrewserong, ramonopoly, welcher, mamaduka, wildworks, youknowriad, isabel_brison.

Fixes #64200.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 05:07:41 +00:00
ramonopoly
d35a5deaca WP_Theme_JSON: preserve valid non-preset settings for lightbox when KSES filters are active
Extends `VALID_SETTINGS` entries to also do type validation (as well as schema key validation) for the lightbox settings only.

Previously, when KSES filters were active (via `add_action( 'init', 'kses_init_filters' )`), valid non-preset settings in Global Styles were being incorrectly filtered out. For example, `lightbox.enabled` and `lightbox.allowEditing` for Image blocks.

The idea is that `VALID_SETTINGS` values can act as type validation for further valid settings.

Props ramonopoly, mmtr86, oandregal, wildworks, westonruter, andrewserong.

Fixes #64280.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 04:19:41 +00:00
ramonopoly
7c72462aed Patterns: Add the pattern name to pattern blocks when they are converted
Modifies the `resolve_pattern_blocks` function to include metadata for single-root patterns, allowing the pattern `name`, `description`, categories` metadata to be stored in the block attributes. 

This enables identification of patterns within templates in the block editor for the purposes of the pattern editing functionality.

Props ramonopoly, andrewserong, talldanwp, westonruter, scruffian, huzaifaalmesbah, audrasjb.

Fixes #64123.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 03:13:41 +00:00
joedolson
2d43952e52 Editor: A11y: Fix featured image control naming.
The controls to set and remove a featured image in the Classic Editor use a link with no attributes to identify purpose. Triggering a modal dialog should be done using a button with proper identification.

Add `role="button"`, `aria-haspopup="dialog"`, and `aria-controls` attributes to give users appropriate information about the control behavior. Add keypress handlers for button-specific keyboard events.

Does not use a `button` element to avoid interfering with style customizations.

Props alh0319, joedolson, mukesh27, huzaifaalmesbah.
Fixes #63980.
Built from https://develop.svn.wordpress.org/trunk@61616


git-svn-id: http://core.svn.wordpress.org/trunk@60927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-12 01:51:41 +00:00
Sergey Biryukov
051003f03e Coding Standards: Correct two ignore annotations for WordPress.DB.PreparedSQL.
The `WordPress.DB.PreparedSQL` sniff contains two different error messages, which initially shared the same error code. A unique error code for the second message was added in WPCS 2.0.0. 

Reference: [https://github.com/WordPress/WordPress-Coding-Standards/pull/1601 PreparedSQL: use unique errorcode for messages].

Follow-up to [43628], [43630], [43654], [44472].

Props rodrigosprimo.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61615


git-svn-id: http://core.svn.wordpress.org/trunk@60926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-11 22:11:45 +00:00
audrasjb
94b290d4e4 Site Health: Allow direct linking to site health check result.
This changeset does the following changes:
- Add an ID to each accordion button
- Update the URL hash each time an accordion button is clicked
- On page load, open the related accordion when provided

This way, people can use the URL of the page to share a direct link to the site health info section they want.

Props sippis, kabir93, audrasjb, saratheonline, pratiklondhe, vgnavada, SirLouen, nikunj8866, pmbaldha, sajjad67, huzaifaalmesbah, westonruter.
Fixes #62846.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-11 21:10:40 +00:00
audrasjb
da4ead53ba Build/Test Tools: Update the Playground PR comment in GitHub Actions.
This changeset removes the "Plugin and Theme Directories cannot be accessed within Playground" bullet point from the Playground Pull Request Comment GitHub Action, as it is not the case anymore.

Props audrasjb, westonruter.
Fixes #64578.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-11 20:27:38 +00:00
Weston Ruter
f8913099fe Site Health: Add test and debug data for Opcode Cache.
Developed in https://github.com/WordPress/wordpress-develop/pull/9260

Props rollybueno, westonruter, swissspidy, peterwilsoncc, szepeviktor, ozgursar, oglekler, johnbillion, ugyensupport, abcd95, shailu25, noruzzaman.
Fixes #63697.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-11 20:15:40 +00:00
Weston Ruter
afa47e5562 Code Editor: Switch from Esprima to Espree for JavaScript linting in CodeMirror.
Esprima is no longer maintained, and it does not support the latest JavaScript features in ES11, as Espree does.

- **New Linter Integration:** Introduces `src/js/_enqueues/vendor/codemirror/javascript-lint.js` using `espree` for parsing and error reporting, replacing the dependency on `jshint` and `esprima` scripts.
- **Script Modules:** Registers `espree` as a script module and leverages the `module_dependencies` argument in `wp_register_script()` to ensure `espree` is available as a dynamic import.
- **Editor Settings:** Updates `wp_get_code_editor_settings()` to use ES11 (ECMAScript 2020) defaults and synchronizes JSHint settings from `.jshintrc` for compatibility.
- **Editable Extensions:** Adds `.mjs` to the list of editable file extensions for plugins and themes.
- **Deprecations:** Marks `esprima` and `jshint` script handles as deprecated.
- **Build Tools:** Updates Webpack configuration to bundle `espree` as a module and use the new local `javascript-lint.js`.

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

Follow-up to [61587], [61544], [61539], [42547].

Props westonruter, jonsurrell.
See #64562, #61500, #48456, #42850.
Fixes #64558.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-10 22:30:53 +00:00