Update the front-end CSS used for multisite user activation and signup. Modify both styles to help prevent conflicts with existing theme styles and provide more consistent margins, paddings, widths, and font sizes.
Props joedolson, sabernhardt, rishabhwp, r1k0, johnjamesjacoby.
Fixes#63861.
Built from https://develop.svn.wordpress.org/trunk@61662
git-svn-id: http://core.svn.wordpress.org/trunk@60973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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
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
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
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
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
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
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
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
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
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
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
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
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
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
`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
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
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
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
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
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
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
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
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
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
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
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
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
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
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