Commit Graph

52417 Commits

Author SHA1 Message Date
wildworks
dec7e5da85 Admin reskin: Remove line-height from input fields.
`line-height` values that were previously used to match the height of input fields affect the height of the background shown when text inside those fields is selected. Removing these `line-height` declarations allows the text selection highlight to render more naturally.

Additionally, update the height of the custom Date/Time format input fields on the General Settings screen to `32px` to align with the new design system.

Props arkaprabhachowdhury, audrasjb, hmrisad, huzaifaalmesbah, manhar, manishxdp, noruzzaman, ozgursar, r1k0, sachinrajcp123, wildworks.

Fixes #64763.
Built from https://develop.svn.wordpress.org/trunk@62171


git-svn-id: http://core.svn.wordpress.org/trunk@61453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-28 12:27:46 +00:00
desrosj
ab2a0ca200 Tests: Fix test that checks MySQL version recommendation.
A test in the `external-http` group that detects when the recommended version of MySQL is too old is failing due to an upstream change to the content of version documentation pages.

Because the required information is no longer on the page, this switches to using the public API from endoflife.date. This site is an open source (MIT licensed) resource that is actively maintained.

Props peterwilsoncc.
See #64894.
Built from https://develop.svn.wordpress.org/trunk@62170


git-svn-id: http://core.svn.wordpress.org/trunk@61452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-28 00:19:43 +00:00
Peter Wilson
973e6ccec7 Exports: Exclude wp_sync_storage post type from exports.
Configured the Real Time Collaboration post type to be excluded from exports by default. The data is considered ephemeral and includes data on post IDs that may not match the IDs of posts on the importing site.

Introduces a test to the export test suite to ensure that post types set to be excluded from exports are, in fact, excluded from exports.

Props peterwilsoncc, desrosj, westonruter, jorbin, mukesh27, czarate.
Fixes #64964.



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


git-svn-id: http://core.svn.wordpress.org/trunk@61450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 22:46:43 +00:00
Sergey Biryukov
9d8881c3da Code Quality: Unwrap sprintf() with one argument.
This removes unnecessary uses of the `sprintf()` function when localizing or outputting static strings. These changes simplify the code and improve readability without affecting functionality.

Props Soean.
See #64898.
Built from https://develop.svn.wordpress.org/trunk@62167


git-svn-id: http://core.svn.wordpress.org/trunk@61449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 22:19:44 +00:00
desrosj
cc54f28979 Build/Test Tools: Add 7.0-RC2 to upgrade testing workflows.
Since this workflow tests based on tagged versions available through WP-CLI, the pre-release versions need to be used.

Follow up to [62160].

See #64966.
Built from https://develop.svn.wordpress.org/trunk@62166


git-svn-id: http://core.svn.wordpress.org/trunk@61448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 17:34:41 +00:00
audrasjb
3647045039 Upgrade/Install: Use new default admin color scheme for language dropdown on the setup screen.
This changeset ensures the hover/focus color of the setup screen's language dropdown use the new default admin color scheme.

Reviewed by SergeyBiryukov.
Props huzaifaalmesbah, noruzzaman.
Fixes #64961.
See #64308.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 16:07:42 +00:00
desrosj
94ee49a459 Post 7.0 branching version bump.
Trunk is now 7.1-alpha.

Reviewed by SergeyBiryukov.

See #64966.
Built from https://develop.svn.wordpress.org/trunk@62161


git-svn-id: http://core.svn.wordpress.org/trunk@61443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 15:17:41 +00:00
desrosj
30b486f5f0 Build/Test Tools: Post-branching updates for trunk.
Reviewed by SergeyBiryukov.

See #64966.
Built from https://develop.svn.wordpress.org/trunk@62160


git-svn-id: http://core.svn.wordpress.org/trunk@61442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 15:15:41 +00:00
desrosj
b1db6c95e4 Build/Test Tools: Remove unintentional change in [62157].
This removes a change that was unintentionally included in the previous commit.

Reviewed by peterwilsoncc.

Unprops desrosj.
Props peterwilsoncc.
Fixes #64925. See #64393.
Built from https://develop.svn.wordpress.org/trunk@62158


git-svn-id: http://core.svn.wordpress.org/trunk@61440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 01:15:48 +00:00
desrosj
c4c027814a Build/Test Tools: Remove PHP requirement for the build script.
In [61873], the `build` script started failing in some environemnts due to logic that added a requirement for `php-cli`.

While WordPress itself cannot be run without PHP, the build script has never required PHP to be present to prepare `wordpress-develop` for use. This adjusts the relevant code to make use of the `php-array-reader` package instead.

Reviewed by peterwilsoncc.

Props dmsnell, peterwilsoncc, gaisma22, SirLouen, sabernhardt, manhar.
Fixes #64925. See #64393.
Built from https://develop.svn.wordpress.org/trunk@62157


git-svn-id: http://core.svn.wordpress.org/trunk@61439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-27 00:33:51 +00:00
Sergey Biryukov
abdc77f7d7 Tests: Add unit tests for wp_timezone_choice().
Follow-up to [57145], [59931].

Reviewed by westonruter, swissspidy, SergeyBiryukov.

Props pbearne, SirLouen, wildworks, westonruter, swissspidy, audrasjb, juanmaguitar, rollybueno, welcher, SergeyBiryukov.
Fixes #59941.
Built from https://develop.svn.wordpress.org/trunk@62156


git-svn-id: http://core.svn.wordpress.org/trunk@61438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 22:29:46 +00:00
Aaron Jorbin
f7193a386e Build/Test: Set svn:global-ignore for built block files.
After [62117] through [62144] along with [62147] through [62149], a number of block directories included css files as the result of `npm build`. To fix this and prevent a recurrence when new blocks are added, this moves from the `svn:ignore` property needing to be set on each individual directory to using the `svn:global-ignores` property which is recursive.

This was accomplished by running the following commands:

{{{
svn propdel svn:ignore -R src/wp-includes/blocks/*
svn propset svn:global-ignores '*.css
*.js
*.js.map' src/wp-includes/blocks
}}}

Discussed in https://wordpress.slack.com/archives/C08D0Q6BHNY/p1774546046110849

Reviewed-by:dmsnell and jonsurrell.

Props dmsnell, johnbillion, jonsurrell, jorbin.
See #64393.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 19:22:50 +00:00
joedolson
a475ca610c Admin: Add CSS fallback values in button and media views.
Since button and media view CSS can sometimes be enqueued by extenders in contexts where either `wp-base-styles` are not present or the `body` wrapper class is omitted, these variables should use fallback values.

Reviewed by audrasjb.
Props huzaifaalmesbah, wildworks, mukesh27, noruzzaman, joedolson, sabernhardt, audrasjb, shailu25.
Fixes #64840.
Built from https://develop.svn.wordpress.org/trunk@62154


git-svn-id: http://core.svn.wordpress.org/trunk@61436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 19:04:45 +00:00
ellatrix
3574f1a5f9 Post WordPress 7.0 RC 2 version bump.
Built from https://develop.svn.wordpress.org/trunk@62153


git-svn-id: http://core.svn.wordpress.org/trunk@61435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 18:35:46 +00:00
ellatrix
b68484696f WordPress 7.0 RC 2.
Built from https://develop.svn.wordpress.org/trunk@62152


git-svn-id: http://core.svn.wordpress.org/trunk@61434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 18:05:44 +00:00
ellatrix
7212fde7bf Follow-up to [62150]. Bump script versions with npm run dev.
Props desrosj.
See #64595.
Built from https://develop.svn.wordpress.org/trunk@62151


git-svn-id: http://core.svn.wordpress.org/trunk@61433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 17:37:44 +00:00
ellatrix
5a2463711b Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `3edafcc90fc4520939d69279e26ace69390582be` to `0d133bf7e7437d65d68a06551f3d613a7d8e4361`.

The following changes are included:

- Reset blockEditingModes on RESET_BLOCKS (https://github.com/WordPress/gutenberg/pull/76529)
- RTC: Remove stale wp_enable_real_time_collaboration option check (https://github.com/WordPress/gutenberg/pull/76810)
- RTC: Fix editor freeze when replacing code editor content (https://github.com/WordPress/gutenberg/pull/76815)
- Preferences: Hide collaboration options when RTC is not enabled (https://github.com/WordPress/gutenberg/pull/76819)
- Editor: Fix template revisions using 'modified' date field instead of 'date' (https://github.com/WordPress/gutenberg/pull/76760)
- `ControlWithError`: Connect validation messages to controls via `aria… (https://github.com/WordPress/gutenberg/pull/76835)

A full list of changes can be found on GitHub: 3edafcc90f…0d133bf7e7437d65d68a06551f3d613a7d8e4361.

Log created with:

git log --reverse --format="- %s" 3edafcc90fc4520939d69279e26ace69390582be..0d133bf7e7437d65d68a06551f3d613a7d8e4361 | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy

See #64595.
Built from https://develop.svn.wordpress.org/trunk@62150


git-svn-id: http://core.svn.wordpress.org/trunk@61432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 17:11:56 +00:00
desrosj
998a7729fa Build/Test Tools: Update built asset file after [62146].
This updates a few built asset files with changes from [62146]. These changes were not included because the files were ignored until [62148].

Props dmsnell, ellatrix, desrosj.
See #64393.
Built from https://develop.svn.wordpress.org/trunk@62149


git-svn-id: http://core.svn.wordpress.org/trunk@61431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:47:45 +00:00
dmsnell
4804e9275d Build: Restore deleted files and reconnect version history (svn:ignore follow-up).
Removes svn:ignore props that were excluding script package manifests [62143].

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

Follow-up to [62143].

Props desrosj, dmsnell, ellatrix.
See #64393.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:28:38 +00:00
dmsnell
a5312c0fa0 Build: Restore deleted files and reconnect version history (follow-up).
Adds files that were missed in [62143].

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

Follow-up to [62143].

Props desrosj, dmsnell, ellatrix.
See #64393.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:23:43 +00:00
mcsf
fc38e49a72 Real-time collaboration: Update "Join" action label in post list if lock expires
When RTC is enabled, let the "Join" action link in the post list turn into "Edit" after the post lock expires. Do this by rendering both "Edit" and "Join" as separate spans and toggling visibility via CSS using the `wp-collaborative-editing` class that heartbeat already manages. Do the same to aria-label with screen-reader-text spans so the accessible name stays in sync with the visible text across lock state changes.

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

Follow-up to [62074].

Props shekharnwagh.
See #64622.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:10:38 +00:00
audrasjb
9edf1b7e9a Admin: Use admin color scheme variable for bar, highlight, and contextual help styles.
This changeset ensures the styles for bar, highlight and contextual help always take into account the admin color scheme settings.

Reviewed by joedolson.
Props fabiankaegy, audrasjb, ozgursar, noruzzaman, shailu25, sandipsinh007, tusharaddweb, hbhalodia, amesplant, joedolson.
Fixes #64744.
See #64308.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:08:39 +00:00
desrosj
85646f6ee8 Build/Test Tools: Commiting changes to built files after [62143].
This commits changes to built files that were not included in the previous commit that restored version history for files that were previously subject to version control.

This also reverts [62069], which was a temporary fix to ensure deleted files that are no longer desired were cleaned up on the build server prior to committing the changes.

Finally, the `src/wp-includes/build` and all its contents to the exclusion list for PHPCS scans. There are small coding standards failures in these files that need to be resolved upstream before the scan will pass on this directory.

Props dmsnell, ellatrix, desrosj.
See #64393.
Built from https://develop.svn.wordpress.org/trunk@62144


git-svn-id: http://core.svn.wordpress.org/trunk@61426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 16:06:44 +00:00
dmsnell
2bd1a8ac83 Build: Restore deleted files and reconnect version history.
In [61438] and successive fixes, a number of files were deleted and added to `.gitignore`. These files were removed because they are built from the Gutenberg repo and copied into the Core repo. However, because the only artifact of udpates to those files are an opaque hash change, it’s important to have a copy of the files at the change in version control for the purposes of auditing, debugging, benchmarking, and tracking.

This patch merges a version-history from before the initial changeset and reattaches the version-tracking to these files, creating immitation commits along each step where the files were updated in a Gutenberg sync.

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

Follow-up to [61438].

Props 762e5e74, aidvu, desrosj, dmsnell, jonsurrell, youknowriad.
See #64393.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 15:27:53 +00:00
jorgefilipecosta
633e59a9ca Connectors: Respect custom setting_name in connector registration.
`WP_Connector_Registry::register()` always auto-generates the `setting_name`
for connectors with `api_key` authentication, ignoring any caller-provided
value. This prevents connectors from using existing WordPress options as their
API key storage.
This change checks for a non-empty `setting_name` in the provided args before
falling back to the auto-generated name.

Props jorgefilipecosta, gziolo.
Fixes #64957.
Built from https://develop.svn.wordpress.org/trunk@62116


git-svn-id: http://core.svn.wordpress.org/trunk@61398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 11:44:52 +00:00
joedolson
7c9dbc1908 Admin: Fix height of controls in extra_tablenav.
Add CSS & update selectors so that controls added in the `extra_tablenav` region of list tables inherit the compact sizing used by core table nav controls.

Reviewed by johnbillion.
Props johnbillion, hbhalodia, mukesh27, sabernhardt, abdullah17, r1k0, joedolson, nilambar, shailu25.
Fixes #64796.
Built from https://develop.svn.wordpress.org/trunk@62115


git-svn-id: http://core.svn.wordpress.org/trunk@61397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 02:27:52 +00:00
wildworks
54af6b0047 Editor: Fix invalid navigation overlay patterns
Fixes the following two patterns:

- Navigation Overlay: Add explicit black text and link colors so the default overlay pattern remains readable even when the active theme uses white text.
- Overlay with site info and CTA: Fix invalid block attributes to prevent the block from breaking.

Follow-up to [61609].

Props isabel_brison, mikachan, onemaggie, westonruter, wildworks.
See #64589.
Built from https://develop.svn.wordpress.org/trunk@62114


git-svn-id: http://core.svn.wordpress.org/trunk@61396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-26 01:20:54 +00:00
Sergey Biryukov
ce4f23a610 Admin Reskin: Correct hover color for links on the login screen.
Follow-up to [61681].

Reviewed by wildworks, SergeyBiryukov.

Props nikunj8866, wildworks, joedolson, audrasjb, huzaifaalmesbah, shailu25, ozgursar, noruzzaman, khushi1501, SergeyBiryukov.
Fixes #64879.
Built from https://develop.svn.wordpress.org/trunk@62113


git-svn-id: http://core.svn.wordpress.org/trunk@61395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-25 20:52:53 +00:00
Sergey Biryukov
53b674ee06 Bundled Themes: Update all references to the Verse block to Poetry.
Original PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/74121 #74121 Rename Verse block to Poetry]

Reviewed by wildworks, SergeyBiryukov.

Props jsmansart, ellatrix, wildworks, mukesh27, sabernhardt.
Fixes #64658.
Built from https://develop.svn.wordpress.org/trunk@62112


git-svn-id: http://core.svn.wordpress.org/trunk@61394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 19:48:50 +00:00
ellatrix
90dc2266fd Post WordPress 7.0 RC 1 version bump.
Built from https://develop.svn.wordpress.org/trunk@62111


git-svn-id: http://core.svn.wordpress.org/trunk@61393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 19:28:53 +00:00
ellatrix
fd47946d91 WordPress 7.0 RC 1 (case corrected).
Props audrasjb.
Built from https://develop.svn.wordpress.org/trunk@62110


git-svn-id: http://core.svn.wordpress.org/trunk@61392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 19:03:46 +00:00
ellatrix
4137c41f13 WordPress 7.0 RC 1.
Built from https://develop.svn.wordpress.org/trunk@62109


git-svn-id: http://core.svn.wordpress.org/trunk@61391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 18:58:51 +00:00
joedolson
418c28e1a9 Admin: Remove border radius on focus state in admin sidebar.
Match the `:hover` and `:focus` states in the admin sidebar, restoring the sharp-edged border used prior to the admin reskin. Remove the 2px border radius from focused admin sidebar links.

Props juanfra, audrasjb, niravsherasiya7707, khushi1501, shailu25, joedolson.
Fixes #64860.
Built from https://develop.svn.wordpress.org/trunk@62108


git-svn-id: http://core.svn.wordpress.org/trunk@61390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 18:02:50 +00:00
Weston Ruter
6a8166d4c8 Code Modernization: Fix rest_convert_error_to_response() handling of non-array error data when obtaining status.
While the error data is normally an array, this is not guaranteed. This issue would have been detected by PHPStan rule level 9, since `WP_Error::get_all_error_data()` returns `mixed[]`.

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

Follow-up to r61429.

Props nateallen, desrosj, jorbin, mukesh27, westonruter.
See #63430.
Fixes #64901.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 17:39:51 +00:00
joedolson
ab25da0c16 Admin: A11y: Fix visibility of pressed button state.
Increase the style contrast between pressed and un-pressed button states by using enhanced box-shadow to differentiate.

Props wildworks, mukesh27, shailu25, maulikmakwana2008, huzaifaalmesbah, sabernhardt, khushi1501, ozgursar, noruzzaman, gaisma22, sirlouen, joedolson.
Fixes #64856.
Built from https://develop.svn.wordpress.org/trunk@62106


git-svn-id: http://core.svn.wordpress.org/trunk@61388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 17:33:50 +00:00
joedolson
2a50116f2c Media: Fix uploading media string.
Replace the incorrect three stops with an appropriate ellipsis in the string. Follow up to [62104].

Props presskopp, joedolson.
See #64883.
Built from https://develop.svn.wordpress.org/trunk@62105


git-svn-id: http://core.svn.wordpress.org/trunk@61387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 17:02:05 +00:00
joedolson
2e123634ec Media: Fix visual issues in media library grid view.
Populate the uploading progress bar visual naming element. Provides a nominal accessibility improvement, in that long uploads can be found and recognized during the upload process. Fix an alignment issue in the bulk select button. Follow up to [61757].

Props siliconforks, presskopp, ozgursar, joedolson.
Fixes #64883.
Built from https://develop.svn.wordpress.org/trunk@62104


git-svn-id: http://core.svn.wordpress.org/trunk@61386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 16:35:52 +00:00
desrosj
9f9458da6f Build/Test Tools: Only copy block library-related CSS to a single location.
Since [61438], all CSS files for the block library are being copied twice into two separate locations: `wp-includes/blocks/BLOCKNAME/` (the previous location) and `wp-includes/css/dist/block-library/BLOCKNAME/`.

Since the copies added to the `css/dist` directory are not actually being used and moving the files was the original intention in [61438], this adds an exclusion rule to the `grunt copy:gutenberg-styles` task to allow the `tools/gutenberg/copy.js` script to handle these files.

Props jorbin, youknowriad.
See #64933.
Built from https://develop.svn.wordpress.org/trunk@62103


git-svn-id: http://core.svn.wordpress.org/trunk@61385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 14:04:55 +00:00
ellatrix
2fdfad4e4a Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `2ee7ede6be6d4e55d5c7047394c5c4e0ea8d521d` to `3edafcc90fc4520939d69279e26ace69390582be`.

The following changes are included:

- RTC: Use activation hook to enable RTC by default (https://github.com/WordPress/gutenberg/pull/76736)
- Connectors: Align client-side registration API with server-side (https://github.com/WordPress/gutenberg/pull/76737)
- Connectors: Support non-AI provider types and add JS extensibility e2e test (https://github.com/WordPress/gutenberg/pull/76722)
- RTC: Add E2E "stress test" with complex interactions (https://github.com/WordPress/gutenberg/pull/76055)
- Button: restore specificity of high-contrast mode focus ring (https://github.com/WordPress/gutenberg/pull/76719) (https://github.com/WordPress/gutenberg/pull/76770)
- Connectors: Improve AI plugin button (https://github.com/WordPress/gutenberg/pull/76759)
- RTC: Use prepared queries instead of `*_post_meta` functions (https://github.com/WordPress/gutenberg/pull/76779)

A full list of changes can be found on GitHub: 2ee7ede6be…3edafcc90fc4520939d69279e26ace69390582be.

Log created with:

git log --reverse --format="- %s" 2ee7ede6be6d4e55d5c7047394c5c4e0ea8d521d..3edafcc90fc4520939d69279e26ace69390582be | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy

See #64595.
Built from https://develop.svn.wordpress.org/trunk@62102


git-svn-id: http://core.svn.wordpress.org/trunk@61384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 13:58:01 +00:00
Felix Arntz
f01eb1abf6 AI: Fix prompt lifecycle hooks not firing for wp_ai_client_prompt() flow.
This broke while porting over the relevant logic from the `wp-ai-client` package to Core.

With this changeset, the lifecycle hooks `wp_ai_client_before_generate_result` and `wp_ai_client_after_generate_result` fire as expected.

Props shadyvb, gziolo.
Fixes #64935.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 12:39:51 +00:00
zieladam
b801c240e9 Real-Time Collaboration: Define WP_ALLOW_COLLABORATION in wp_is_collaboration_allowed()
#62075 introduced the WP_ALLOW_COLLABORATION constant to help hosts disable RTC at the platform level. The constant was defined in wp_functionality_constants(), which runs in wp-settings.php after collaboration.php is loaded. That created a boot-order edge case where wp_is_collaboration_enabled() could be called before the constant existed – for instance via SHORTINIT.

This commit moves the constant definition into a new wp_is_collaboration_allowed() function in collaboration.php. The function checks the constant, and if it's missing, defines it on the spot from the environment variable (defaulting to true). wp_is_collaboration_enabled() now delegates to wp_is_collaboration_allowed() for the constant check, and the admin UI calls wp_is_collaboration_allowed() directly to decide whether to show the checkbox or a "disabled" notice. It also slightly improves the label of the "enable RTC" checkbox on the settings page.


Props peterwilsoncc, mcsf, joen, ingeniumed.

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

See #64904.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 12:19:52 +00:00
zieladam
b73fefa893 Real-time collaboration: Use prepared queries instead of *_post_meta functions.
Replaces add_post_meta/update_post_meta with wpdb->insert/wpdb->update.

This prevents a real-time editing session from invalidating WP_Query and various other post caches every few seconds. RTC stores awareness and sync information in post meta with high frequency. However, every call the *_post_meta functions invalidated post caches.

This commit avoids this frequent invalidation by removing the direct *_post_meta calls in favor of $wpdb calls.

Props czarate, mukesh27, paulkevan.

Developed in https://github.com/WordPress/wordpress-develop/pull/11325.
See #64696.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 09:08:57 +00:00
audrasjb
6e5993cb47 Media: Implement admin UI changes in the "Edit Image" screen and modal.
This changeset fixes some missing implementations of the new Admin UI in buttons and help links located on the "Edit Image" screen and within the related modal.

Props huzaifaalmesbah, hmbashar, audrasjb, mukesh27, wildworks, noruzzaman, shailu25, manhar, amin7, amesplant.
Fixes #64759.
See #64308.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 06:20:58 +00:00
audrasjb
0c97fcf5ed Menus: Remove floats from custom links section in the Nav Menus screen.
With the new admin design, there were some issues with floating elements in the custom links section of the classic Menu screen. This changeset simplifies the CSS implementation by removing floats and `wp-clearfix` classes from some elements in favor of a more robust implementation based on flex positionning.

Props audrasjb, huzaifaalmesbah, shailu25, nikunj8866, joedolson, khushi1501, ozgursar.
Fixes #64692.
See #64308.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 05:57:59 +00:00
Gary Pendergast
94ac2d4d66 Application Passwords: Allow HTTP loopback redirect URLs
This change allows HTTP redirect URLs for loopback addresses (`127.0.0.1`, `[::1]`) in `wp_is_authorize_application_redirect_url_valid()`, regardless of environment type. This aligns the application password implementation with RFC 8252 7.3.

It's worth noting that section 8.3 of the RFC recommends against allowing `localhost` as a loopback redirect, since it may be susceptible to firewall interception and DNS resolution poisoning.

Props aquarius, pento.
Fixes #57809.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-24 02:19:56 +00:00
desrosj
b0c1f7476e Build/Test Tools: Improve GitHub Actions path filtering rules.
This adjusts the path filtering rules for several GitHub Actions workflows to account for new and missed file paths.

Props westonruter.
See #64227.
Built from https://develop.svn.wordpress.org/trunk@62095


git-svn-id: http://core.svn.wordpress.org/trunk@61377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-23 23:25:01 +00:00
Aaron Jorbin
239e8edce5 Abilities API: Revert Allow nested namespace ability names.
Abilities should follow the same pattern as all other namespaces and use a single namespace.

Reverts [61602].

See #64596.
Props jorgefilipecosta, justlevine, audrasjb.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-23 19:41:51 +00:00
Sergey Biryukov
ff72263643 Code Modernization: Replace the deprecated auto_detect_line_endings setting.
Since PHP 8.1, the `auto_detect_line_endings` setting is deprecated:

> The `auto_detect_line_endings` ini setting modifies the behavior of `file()` and `fgets()` to support an isolated `\r` (as opposed to `\n` or `\r\n`) as a newline character. These newlines were used by “Classic” Mac OS, a system which has been discontinued in 2001, nearly two decades ago. Interoperability with such systems is no longer relevant.

Reference: [https://wiki.php.net/rfc/deprecations_php_8_1#auto_detect_line_endings_ini_setting PHP RFC: Deprecations for PHP 8.1: auto_detect_line_endings ini setting].

> The `auto_detect_line_endings` ini setting has been deprecated. If necessary, handle `\r` line breaks manually instead.

Reference: [1cf4fb739f/UPGRADING (L456-L457) PHP 8.1 Upgrade Notes].

This commits adds code to replace the deprecated setting and still handle old-style `\r` line-terminated files in `PO::read_line()` using `strpos()` + `fseek()`. Includes a unit test covering `\r`, `\n`, and `\r\n` line endings.

Follow-up to [51633], [51636].

Props akirk, apermo, westonruter, SergeyBiryukov.
Fixes #64928.
Built from https://develop.svn.wordpress.org/trunk@62093


git-svn-id: http://core.svn.wordpress.org/trunk@61375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-23 14:55:58 +00:00
wildworks
1d1a1ae9e2 Toolbar: Add search icon prefix to command palette item in admin bar.
Displays a search icon before the shortcut text in desktop view to clarify the item's purpose.

Follow-up to [61912], [61979].

Props sabernhardt, siliconforks, presskopp, westonruter, wildworks.
See #64672.
Built from https://develop.svn.wordpress.org/trunk@62092


git-svn-id: http://core.svn.wordpress.org/trunk@61374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-23 11:02:57 +00:00
Sergey Biryukov
ee25f8b635 Code Quality: Remove redundant variable assignment in wp_list_authors().
There is no need to initialize `$post_counts` as an empty array, since it will be overwritten directly by the filter value in the next line.

Follow-up to [54262].

Props Soean.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@62091


git-svn-id: http://core.svn.wordpress.org/trunk@61373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-23 08:58:47 +00:00