Commit Graph

52272 Commits

Author SHA1 Message Date
gziolo
dcb95f57ae Connectors: Add connector registry for extensibility
Introduces `WP_Connector_Registry` class and a `wp_connectors_init` action hook so plugins can register their own connectors alongside the built-in defaults (Anthropic, Google, OpenAI).

Key changes:
* `WP_Connector_Registry` — A `final` singleton class managing connector registration and lookup, with validation for IDs, required fields, and authentication methods.
* `wp_connectors_init` action — Fired during `init` after built-in connectors are registered. Passes the registry instance so plugins call `$registry->register()` directly.
* `_wp_connectors_init()` — Private function that creates the registry, merges hardcoded defaults with AI Client registry data, registers them, then fires the action.
* Public read-only functions — `wp_is_connector_registered()`, `wp_get_connector()`, `wp_get_connectors()` for querying the registry after initialization.
* Logo URL support — Connectors can include an optional `logo_url` field resolved from plugin directories via `_wp_connectors_resolve_ai_provider_logo_url()`.
* Timing guards — `set_instance()` rejects calls after `init` completes. Registration is only possible during `wp_connectors_init`.
* Connector API key settings are now only registered when the provider exists in the AI Client registry.
* Refactors `_wp_connectors_get_connector_settings()` to read from the registry via `wp_get_connectors()`.

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

Props gziolo, flixos90, mukesh27, westonruter.
Fixes #64791.



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


git-svn-id: http://core.svn.wordpress.org/trunk@61225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 16:11:46 +00:00
gziolo
93c284f71a AI: Update php-ai-client to 1.3.0.
Updates the bundled `php-ai-client` library to version 1.3.0 and aligns the WordPress-specific prompt builder (`WP_AI_Client_Prompt_Builder`) with the upstream changes.

Key changes in php-ai-client 1.3.0:
* Adds video generation model interfaces.
* Enhances `PromptBuilder` with additional configuration methods.
* Improves `TokenUsage` and `ProviderMetadata` DTOs.
* Updates `MessagePart` DTO.

See release: https://github.com/WordPress/php-ai-client/releases/tag/1.3.0

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

Props flixos90.
See #64591.



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


git-svn-id: http://core.svn.wordpress.org/trunk@61224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 15:46:35 +00:00
joedolson
a67c640b9b Admin: Fix plugin search alignment on intermediate viewports.
Add a margin on the plugin installation search form on screens between 1135 and 1250px.

Props jsmansart, hbhalodia, divyeshpatel01, noruzzaman, huzaifaalmesbah, amin7, shailu25, r1k0, joedolson.
Fixes #64809.
Built from https://develop.svn.wordpress.org/trunk@61941


git-svn-id: http://core.svn.wordpress.org/trunk@61223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 15:45:52 +00:00
joedolson
3795cb9d5f Admin: Fix checked input state in older browsers.
Remove duplicate CSS setting the checked state for checkbox and radio inputs from `_admin.scss`. The duplicate selectors overrode the white checkmark in older browsers, impacting alternate color schemes.

Props sabernhardt, joedolson.
Fixes #64822.
Built from https://develop.svn.wordpress.org/trunk@61940


git-svn-id: http://core.svn.wordpress.org/trunk@61222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 15:39:48 +00:00
Weston Ruter
4a0e4153eb Media: Add optimization support for IMG tags with fetchpriority=low or fetchpriority=auto.
This updates `wp_get_loading_optimization_attributes()` and `wp_maybe_add_fetchpriority_high_attr()` to account for cases where an `IMG` has `fetchpriority=low` or `fetchpriority=auto`:

* `IMG` tags with `fetchpriority=low` are not lazy-loaded since they may be in a Navigation overlay, Details block, or Accordion Item block and need to be loaded the instant the user toggles the block.  
* `IMG` tags with `fetchpriority=auto` do not increase the media count since they may be hidden in a viewport by block visibility settings.
* Blocks with conditional visibility (such as hidden on mobile or desktop) now automatically add `fetchpriority="auto"` to their contained `IMG` tags to prevent them from erroneously receiving `fetchpriority=high` or affecting the lazy-loading of subsequent images. 
* An `IMG` with `fetchpriority=auto` which also surpasses the `wp_min_priority_img_pixels` threshold will prevent a subsequent image from getting `fetchpriority=high`. 

Developed in https://github.com/WordPress/wordpress-develop/pull/11196
Includes backport of [https://github.com/WordPress/gutenberg/pull/76302 Gutenberg#76302]. 

See related Gutenberg issues:

- [https://github.com/WordPress/gutenberg/issues/76181 76181]: Image in navigation overlay can get `fetchpriority=high` and degrade LCP metric for page.
- [https://github.com/WordPress/gutenberg/issues/76268 76268]: Image in collapsed Details block may erroneously get `fetchpriority=high` even though hidden.
- [https://github.com/WordPress/gutenberg/issues/76301 76301]: Block Visibility: `IMG` in viewport-conditional block may get `fetchpriority=high` even when not displayed.
- [https://github.com/WordPress/gutenberg/issues/76335 76335]: Image in collapsed Accordion block may erroneously get `fetchpriority=high` even though hidden.

Follow-up to r56347, r56037.

Props westonruter, mukesh27, ramonopoly, wildworks.
See #58235.
Fixes #64823.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 06:20:49 +00:00
Weston Ruter
6adc3c2417 Script Loader: Preserve duplicate URL query params in enqueued scripts and styles.
Previously in r61397, `add_query_arg()` was used to append versions or handle-specific query arguments. This resulted in stripping any existing duplicate query variables in the source URL (common in Google Fonts URLs). This change refactors `WP_Styles::_css_href()` and `WP_Scripts::do_item()` to manually append these parameters to the URL string. This ensures all original query variables are preserved exactly as provided. It also improves fragment handling by ensuring query parameters are inserted before any '#' anchor while maintaining the anchor's presence.

The URL encoding changes in `tests/phpunit/tests/dependencies/scripts.php` are reversions of what had previously been done in r61397.

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

Follow-up to r61397, r61358.

Props westonruter, jonsurrell.
Fixes #64372.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-11 01:32:44 +00:00
Peter Wilson
68a4551289 Post WordPress 7.0 Beta 4 version bump.
Built from https://develop.svn.wordpress.org/trunk@61919


git-svn-id: http://core.svn.wordpress.org/trunk@61201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 23:47:48 +00:00
Peter Wilson
98cc6f1672 WordPress 7.0 Beta 4.
Built from https://develop.svn.wordpress.org/trunk@61918


git-svn-id: http://core.svn.wordpress.org/trunk@61200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 22:50:44 +00:00
John Blackbourn
89acbf66b1 Customize: Introduce a fix for themes that pass a stringable object through the template_include filter despite it being documented as only accepting a string.
This has historically worked until [61892] increased the strictness of the template file validation which dismissed any value of a type other than a string, which a stringable object is not.

Props dmsnell, westonruter.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 21:11:48 +00:00
ellatrix
438e2779ac Toolbar: Add command palette trigger button.
Props wildworks, hmbashar, bpayton, mcsf, joedolson, sabernhardt, westonruter.
See #64672.
Built from https://develop.svn.wordpress.org/trunk@61912


git-svn-id: http://core.svn.wordpress.org/trunk@61194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 19:12:47 +00:00
John Blackbourn
0e6510596c Customize: Update a test that covers special characters in category names in nav menus.
This should have been committed in [61883] but got missed.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 13:26:47 +00:00
John Blackbourn
0abc4ef20c Media: Disable XML entity substitution in getID3.
Props johnbillion, xknown, dmsnell, jorbin.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:52:40 +00:00
John Blackbourn
f46ecd2f8c Comments: Don't attempt to create a note if the user cannot edit the target post.
Props johnbillion, peterwilsoncc, adamsilverstein.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:49:45 +00:00
John Blackbourn
8f6921d5cd Filesystem API: Don't attempt to extract invalid files from a zip when using the PclZip library.
This brings the handling inline with the same guard condition in `_unzip_file_ziparchive()` with ZipArchive.

Props johnbillion, peterwilsoncc, xknown.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:47:39 +00:00
John Blackbourn
5fefc032ab Administration: Ensure client-side templates are only detected when they're correctly associated with a script tag.
Props johnbillion, peterwilsoncc, jorbin.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:44:39 +00:00
John Blackbourn
0f885ad57d Interactivity API: Skip binding event handler attributes. The corresponding data-wp-on-- attribute should be used instead.
Props luisherranz, peterwilsoncc, johnbillion, ocean90, jorbin, xknown.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:42:42 +00:00
John Blackbourn
b2f104f406 Media: Ensure the attachment parent is accessible to the user before showing a link to it in the media manager.
Props johnbillion, peterwilsoncc.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:37:40 +00:00
John Blackbourn
0f3e3dbd75 Customize: Improve escaping approach used for nav menu attributes
Some attributes require double encoding, which is disallowed by `esc_attr()`.

Props westonruter, dmsnell, johnbillion.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:34:44 +00:00
John Blackbourn
63e76ee310 KSES: Optimize PCRE pattern detecting numeric character references.
Props dmsnell, xknown, johnbillion.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:28:40 +00:00
John Blackbourn
a88ec429b9 XML-RPC: Switch to wp_safe_remote() when fetching a pingback URL.
This corrects the accidental revert of [61879] in [61880].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:24:47 +00:00
John Blackbourn
f6a2aea6c4 HTML API: Prevent WP_HTML_Tag_Processor instances being unserialized and add some extra logic for validating pattern and template file paths.
Props dmsnell, xknown, jonsurrell, peterwilsoncc, johnbillion.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:20:43 +00:00
John Blackbourn
ccc5ded2b6 XML-RPC: Switch to wp_safe_remote() when fetching a pingback URL.
Props xknown, johnbillion, peterwilsoncc.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 12:15:48 +00:00
Sergey Biryukov
cc4246cd13 Docs: Correct duplicate hook references in various files.
This commit adjusts cross-reference comments where the hook was moved to a different file but the cross-reference was not updated.

Props apermo, mukesh27.
See #64224.
Built from https://develop.svn.wordpress.org/trunk@61878


git-svn-id: http://core.svn.wordpress.org/trunk@61160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 11:43:18 +00:00
desrosj
52caefbc6b Build/Test Tools: Remove the requirement to clone/build Gutenberg.
This iterates on the changes from [61438] by removing the need to:
- Check out the WordPress/gutenberg repository at the pinned hash.
- Run `npm install` within that checkout.
- Run `npm build` within that checkout.

Instead, the build script will now download a prebuilt zip file published to the GitHub Container Registry by a GitHub Actions workflow recently merged to the Gutenberg Repository (related PR: https://github.com/WordPress/gutenberg/pull/75844).

This also removes redundant code responsible for:
- Copying files from the `gutenberg` directory to the appropriate locations during the build script in favor of using `grunt copy`.
- Modifying built files to replace specific text, such as `sourceMappingURL`, in favor of `grunt replace`.

The remaining files within the `tools/gutenberg` directory have been renamed to remove `gutenberg` from the file names. Since these are already nested in a `gutenberg` directory, that was redundant.

Since the intention of the pinned value for the repository in the `package.json` file is to specify a full-length commit hash, `ref` has been renamed to `sha`. In Git `ref` encompasses branches, tags, and commit hashes, so this hopefully makes it more clear that something like `branch-name` should not be used.

Follow up to [61438], [61439], [61458], [61492], [61677], [61867].

Props desrosj, dmsnell, westonruter, mcsf, jorbin.
See #64393.
Built from https://develop.svn.wordpress.org/trunk@61873


git-svn-id: http://core.svn.wordpress.org/trunk@61159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 11:29:34 +00:00
desrosj
ade7a13060 Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `7b7fa2bc97a8029a302bd6511cf0d206b5953172` to `9b8144036fa5faf75de43d4502ff9809fcf689ad`.

The following changes are included:

- Use V2 Yjs methods for HTTP Polling (https://github.com/WordPress/gutenberg/pull/76304)
- Plugin: Include Icons assets in ZIP (https://github.com/WordPress/gutenberg/pull/75866)
- Ensure consistent, repeatable build results when inlining WASM files via `wasmInlinePlugin`  (https://github.com/WordPress/gutenberg/pull/76113)
- Account `IS_WORDPRESS_CORE` is set. (https://github.com/WordPress/gutenberg/pull/76334)
- Block Visibility: Add `fetchpriority=auto` to `IMG` tags in blocks with conditional viewport visibility to prevent potential erroneous high loading priority (https://github.com/WordPress/gutenberg/pull/76302)

A full list of changes can be found on GitHub: 7b7fa2bc97…9b8144036fa5faf75de43d4502ff9809fcf689ad.

See #64595, #64393.
Built from https://develop.svn.wordpress.org/trunk@61870


git-svn-id: http://core.svn.wordpress.org/trunk@61157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-10 02:41:14 +00:00
Sergey Biryukov
5c13483c81 Admin Reskin: Correct background color for comment count bubbles.
Props r1k0, mukesh27, manishxdp.
Fixes #64829.
Built from https://develop.svn.wordpress.org/trunk@61869


git-svn-id: http://core.svn.wordpress.org/trunk@61156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-09 22:05:43 +00:00
desrosj
685fb16a7f Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `f4d8a5803aa2fbe26e7d9af4d17e80a622b7bab8` to `7b7fa2bc97a8029a302bd6511cf0d206b5953172`.

The following changes are included:

- Sort registry files by handle/ID. (https://github.com/WordPress/gutenberg/pull/75755)
- Obey undoIgnore flag in editEntityRecord (https://github.com/WordPress/gutenberg/pull/76206)
- RTC: Fix `post-editor-template-mode` E2E test (https://github.com/WordPress/gutenberg/pull/76209)
- Publish built Gutenberg plugin to the GitHub Container Registry (https://github.com/WordPress/gutenberg/pull/75844) (https://github.com/WordPress/gutenberg/pull/76273)
- Connectors: Improve placeholder text and make it translatable (https://github.com/WordPress/gutenberg/pull/75996)
- Block context menu: context menu not closing for disconnecting unsynced pattern menu items (https://github.com/WordPress/gutenberg/pull/75405)
- Connectors: Improve responsive layout for small viewports (https://github.com/WordPress/gutenberg/pull/76231)
- theme.json schema: fix pseudo-class definition for button block (https://github.com/WordPress/gutenberg/pull/76272)
- Navigation block: fix submenu chevron toggle on touch devices (https://github.com/WordPress/gutenberg/pull/76197)

See #64595, #64393.
Built from https://develop.svn.wordpress.org/trunk@61868


git-svn-id: http://core.svn.wordpress.org/trunk@61155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-09 19:27:24 +00:00
desrosj
abeb5ef9bc Build/Test Tools: Properly transform theme.json files during copy.
The `theme.json` file `$schema` URL is relative in the `gutenberg` repository upstream. The URL is not currently being replaced with an aboslute one pointing to w.org due to a missing `transform: true` configuration.

Follow up to [61438], [61439], [61458], [61492], [61677].

See #64393.
Built from https://develop.svn.wordpress.org/trunk@61867


git-svn-id: http://core.svn.wordpress.org/trunk@61154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-09 18:43:38 +00:00
Sergey Biryukov
b0116dc5c5 Code Quality: Correct hook registration type mismatches.
Though `add_action()` and `add_filter()` are functionally equivalent internally, for proper semantics the former should be used on actions and the latter on filters.

Follow-up to [37920], [38046], [53266].

Props apermo.
Fixes #64828.
Built from https://develop.svn.wordpress.org/trunk@61866


git-svn-id: http://core.svn.wordpress.org/trunk@61153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-08 23:49:37 +00:00
Sergey Biryukov
4a87aba8d2 Editor: Correct wp_enable_real_time_collaboration default for REST API sync route.
Follow-up to [61689], [61702], [61722], [61828], [61862], [61864].

Props mindctrl, skithund, amykamala, MadtownLems, aion11, peterwilsoncc, pbiron, apermo, SergeyBiryukov.
Fixes #64814.
Built from https://develop.svn.wordpress.org/trunk@61865


git-svn-id: http://core.svn.wordpress.org/trunk@61152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-07 18:05:33 +00:00
desrosj
735f4d33f4 Editor: Bump the database version to 61833.
The option to enable real-time collaboration was first added in [61689] as `enable_real_time_collaboration` with a value of `1` and the `$db_version` was bumped in [61696].

The option then went through a series of changes. This included: the default value changing to `0` in [61702], being renamed to `wp_enable_real_time_collaboration` in [61722], removed entirely in [61828], and finally being re-added as `wp_enable_real_time_collaboration` in [61862].

Because the `$db_version` was not bumped after these changes, it’s possible that the `wp_enable_real_time_collaboration` option is not present on any site that ran the nightly build generated between [61696] and [61702], or a nightly build/beta release published after [61828]. Since `populate_options()` runs when a new site is installed, this issue only affects pre-existing sites that had upgradd their database when `wp_enable_real_time_collaboration` was not specified as a default option within `$defaults`.

This bumps the database version to `61833`, which is the most recent changeset to have modified the `$defaults` array in `populate_options()`.

Props dlh, maxschmeling, smithjw1, kbat82.
See #64824, #64622.
Built from https://develop.svn.wordpress.org/trunk@61864


git-svn-id: http://core.svn.wordpress.org/trunk@61151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-07 03:14:33 +00:00
joedolson
1ea5366210 Media: Hide image name overlay on gallery thumbnail row.
Set the generated content in the gallery selection strip to `content: none;` to remove the generated overlay. Follow up to [61757].

Props wildworks, hbhalodia, divyeshpatel01, huzaifaalmesbah, apermo, joedolson.
Fixes #64820.
Built from https://develop.svn.wordpress.org/trunk@61862


git-svn-id: http://core.svn.wordpress.org/trunk@61149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 23:41:44 +00:00
joedolson
3a8c0ec190 Toolbar: A11y: Fix color contrast for zero comments.
Remove the 50% opacity change for when the adminbar comment indicators has zero comments.

Props louischan, hbhalodia, sabernhardt, joedolson.
Fixes #64811.
Built from https://develop.svn.wordpress.org/trunk@61861


git-svn-id: http://core.svn.wordpress.org/trunk@61148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 23:28:43 +00:00
joedolson
4a1eb234a6 Customizer: Set more colors to inherit from admin theme.
Remove color overrides in customizer CSS that are already set in admin theme colors. Set colors to admin theme colors where currently hard coded.

Props madhavishah01, noruzzaman, shailu25, joedolson.
Fixes #64731.
Built from https://develop.svn.wordpress.org/trunk@61860


git-svn-id: http://core.svn.wordpress.org/trunk@61147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 23:22:41 +00:00
Sergey Biryukov
219d7563ef Code Quality: Make sure $comment_id is defined in wp-admin/comment.php.
This avoids a `variable.undefined` warning at PHPStan level 3.

Follow-up to [48958].

Props huzaifaalmesbah, westonruter, SergeyBiryukov.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@61859


git-svn-id: http://core.svn.wordpress.org/trunk@61146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 23:20:46 +00:00
joedolson
3fd710b1fb Admin: Fix active filter tab link color.
Change the border color on active filter tab links to use the admin theme color.

Props hbhalodia, mukesh27, huzaifaalmesbah, noruzzaman, shailu25, joedolson.
Fixes #64807.
Built from https://develop.svn.wordpress.org/trunk@61858


git-svn-id: http://core.svn.wordpress.org/trunk@61145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 23:17:42 +00:00
dmsnell
83559dd036 Functions: Memoize wp_normalize_path().
`wp_normalize_path()` is called thousands of times on a given request. This patch adds memoization via a function-local static variable. This reduces the call count to the underlying `wp_is_stream()` function, and measured in testing around a 66% cache hit rate.

In testing, for a site making 4000 calls to `wp_normalize_path()`, this patch led to a reduction in runtime from 1.4 ms to 0.4 ms on the test computer. While small, this time occurs early in the hotpath of the loading WordPress.

Developed in: https://github.com/WordPress/wordpress-develop/pull/10770
Discussed in: https://core.trac.wordpress.org/ticket/64538

Props dmsnell, josephscott, mreishus, westonruter.
Fixes #64538.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 20:05:46 +00:00
Weston Ruter
07e6dc1529 REST API: Optimize themes collection response when querying active theme.
This updates `WP_REST_Themes_Controller::get_items()` to shortcut returning the current theme when the request explicitly queries for the active theme, avoiding expensive call to `wp_get_themes()`.

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

Follow up to r49925.

Props aduth, mukesh27, westonruter.
See #50152. 
Fixes #64719.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 18:03:36 +00:00
dmsnell
4338bfe3f9 Formatting: Transform “ẞ” for German locales in remove_accents().
The capital Eszett was standardized in German orthography in 2017, DIN 5008, but WordPress has only been transforming the lowercase version.

This patch adds the uppercase variant to the list and transforms it to “SS” for more-appriate slug and permalink generation.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11188
Discussed in: https://core.trac.wordpress.org/ticket/64821

Props apermo, dmsnell.
Fixes #64821.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 18:02:45 +00:00
audrasjb
3405927cc1 Administration: Improve the error message sent when bulk role change skips the current user.
This changeset clarifies the error message displayed when the current user tries to change their role to one that does not allow managing other users.

Props dpknauss, audrasjb, huzaifaalmesbah, noruzzaman, r1k0.
Fixes #64690.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-06 14:19:43 +00:00
Sergey Biryukov
3e4494be7f Code Quality: Explicitly globalize admin menu variables to avoid PHPStan warnings.
Follow-up to [15481].

Props huzaifaalmesbah, noruzzaman.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@61853


git-svn-id: http://core.svn.wordpress.org/trunk@61140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 21:08:44 +00:00
joedolson
fb5fc14b23 Admin: Use compact styles in Events dashboard widget.
Change the inputs for setting event location to use the compact input heights.

Props joen, audrasjb, huzaifaalmesbah, amesplant, joedolson.
Fixes #64777.
Built from https://develop.svn.wordpress.org/trunk@61852


git-svn-id: http://core.svn.wordpress.org/trunk@61139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 20:14:39 +00:00
joedolson
721db5ff14 Quick/Bulk Edit: Update focus color on inline edit panel.
Use admin theme variables to set the inline edit wrapper focus border.

Props hmbashar, joedolson, huzaifaalmesbah, mukesh27, shailu25, audrasjb, rahultank, manhar, ozgursar.
Fixes #64757.
Built from https://develop.svn.wordpress.org/trunk@61851


git-svn-id: http://core.svn.wordpress.org/trunk@61138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 20:04:44 +00:00
audrasjb
53e20a11bf Administration: Ensure the Theme Feature Filter button use the new default Admin colors.
Props niravsherasiya7707, louischan, penelopeadrian, noruzzaman, valentingrenier.
Fixes #64808.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 15:29:43 +00:00
audrasjb
5637051ba2 Post WordPress 7.0 Beta 3 version bump.
Built from https://develop.svn.wordpress.org/trunk@61849


git-svn-id: http://core.svn.wordpress.org/trunk@61136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 14:45:42 +00:00
audrasjb
f6a0c46976 WordPress 7.0 Beta 3.
Built from https://develop.svn.wordpress.org/trunk@61848


git-svn-id: http://core.svn.wordpress.org/trunk@61135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 14:13:43 +00:00
ellatrix
3c0281910f Gutenberg ref update.
Only includes the following commit: f4d8a5803a.

"DataForm datetime control: fix date handling" (https://github.com/WordPress/gutenberg/pull/76193)

See #64595.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 12:56:19 +00:00
ellatrix
eff8e6b7ad Gutenberg ref update.
Only includes the following commit: e7b8c0c8a3.

"Media: Use Document-Isolation-Policy for cross-origin isolation on Chromium 137+" (https://github.com/WordPress/gutenberg/pull/75991)

See #64595.
See #64766.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 12:38:26 +00:00
gziolo
683c1d2d87 Connectors: Update the translation when Gutenberg files missing
Follow-up [61825].
Props swissspidy.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 12:09:16 +00:00
Adam Silverstein
6af5a7988d Media: Use Document-Isolation-Policy for cross-origin isolation.
Replace COEP/COOP headers with Document-Isolation-Policy (DIP) for cross-origin isolation in the block editor. DIP enables sharedBufferArray while avoiding the breakage COEP/COOP caused for third-party plugins whose iframes lost credentials and DOM access. Non supporting browsers have the client-side media feature disabled by default - falling back to the existing server side processing -  to avoid a degraded editor experience.

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

Props adamsilverstein, westonruter, manhar, swissspidy, mukesh27.
Fixes #64766.



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


git-svn-id: http://core.svn.wordpress.org/trunk@61131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-05 12:08:40 +00:00