Commit Graph

26135 Commits

Author SHA1 Message Date
audrasjb
78f8920042 Administration: Improve dashboard widgets border styles.
This changeset fixes a CSS glitch on dashboard widgets bottom border when they are collapsed.

Follow-up to [61646].

Props pratik-jain, audrasjb, ankitkumarshah.
Fixes #65017.
See #64549.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-04 06:38:44 +00:00
Sergey Biryukov
609c9939d5 Tests: Move data providers and helpers in Tests_REST_Server for consistency.
This ensures that data providers or helper functions used by a single test are located next to the test, for consistency with the rest of the test suite.

Follow-up to [37905], [37943], [45809], [47239], [47260], [47351], [48947], [49252], [49257], [51960], [53110], [56096], [59032].

See #64225.
Built from https://develop.svn.wordpress.org/trunk@62205


git-svn-id: http://core.svn.wordpress.org/trunk@61485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-03 21:59:45 +00:00
Sergey Biryukov
48c97c37d9 Code Quality: Remove unused variable in WP_Block_Patterns_Registry.
Follow-up to [56805], [59101].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-02 23:49:43 +00:00
joedolson
f07b145215 Admin: Limit scope of admin notice link design.
The design changes to admin notices links in the admin refresh were applied broadly to `.notice, .error, and .updated` classes, but these classes are sometimes used outside the context of an admin notice.

Change selectors from `.notice a, .error a, .updated a` to `div.notice a, div.error a, div.updated a`.

Props opurockey, audrasjb, vgnavada, gaisma22, shailu25, rbcorrales, joedolson.
Fixes #64976.
Built from https://develop.svn.wordpress.org/trunk@62200


git-svn-id: http://core.svn.wordpress.org/trunk@61480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-02 23:34:43 +00:00
joedolson
c4cd46a033 Media: Update upload file overlay colors.
Update the colors used for the file upload overlay mask to use the new admin theme colors.

Props opurockey, huzaifaalmesbah, wildworks, audrasjb, manhar, joedolson.
Fixes #65001.
Built from https://develop.svn.wordpress.org/trunk@62199


git-svn-id: http://core.svn.wordpress.org/trunk@61479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-02 23:10:43 +00:00
Peter Wilson
ac8dbbfea0 REST API: Harden Real Time Collaboration endpoint.
Adds additional validation and permission checks the the Real Time Collaboration endpoint to ensure only input in the expected format is supported.

Props czarate, westonruter, joefusco.
Fixes #64890.



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


git-svn-id: http://core.svn.wordpress.org/trunk@61478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-02 01:24:47 +00:00
Sergey Biryukov
5673bb95ac Admin Reskin: Correct ”Copied!” text alignment on Privacy Policy Guide screen.
Follow-up to [61645].

Props mukesh27, wildworks, audrasjb, shailu25, anupkankale, kapilpaul, SergeyBiryukov.
Fixes #65009.
Built from https://develop.svn.wordpress.org/trunk@62196


git-svn-id: http://core.svn.wordpress.org/trunk@61476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-01 22:03:45 +00:00
jorgefilipecosta
67fe06340e Fix: Register Akismet Anti-Spam as a connector.
Akismet comes with core but the connectors screen was not showing akismet even if akismet was on the file system. This commit fixes the issue.

Props jorgefilipecosta, bluefuton, gziolo.
Fixes #65012.
Built from https://develop.svn.wordpress.org/trunk@62193


git-svn-id: http://core.svn.wordpress.org/trunk@61473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-01 15:54:42 +00:00
jorgefilipecosta
a9a354e21d Connectors: Replace plugin.slug with plugin.file in connector registration.
Use the plugin's main file path relative to the plugins directory
(e.g. `akismet/akismet.php` or `hello.php`) instead of the WordPress.org slug
to identify a connector's associated plugin.
This lets `_wp_connectors_get_connector_script_module_data()` check plugin
status with `file_exists()` and `is_plugin_active()` directly, removing the
`get_plugins()` slug-to-file mapping that was previously needed.

Props jorgefilipecosta, mukesh27, gziolo.
Fixes #65002.
Built from https://develop.svn.wordpress.org/trunk@62192


git-svn-id: http://core.svn.wordpress.org/trunk@61472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-01 14:57:43 +00:00
wildworks
9d8efd46b4 Admin Reskin: Change color picker height to match new design system.
Update min-height from 30px to 32px for the color picker button and related elements to match new design system.

Props audrasjb, hmbashar, huzaifaalmesbah, joedolson, juanmaguitar, mukesh27, noruzzaman, ozgursar, rahultank, rcorrales, sajib1223, tusharaddweb, vgnavada, wildworks.

Fixes #64761.
Built from https://develop.svn.wordpress.org/trunk@62191


git-svn-id: http://core.svn.wordpress.org/trunk@61471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-01 09:19:42 +00:00
Peter Wilson
38b354a7e4 Build/Test Tools: Copy vendor scripts earlier in the build.
Relocates the `copy-vendor-scripts` to run during the the `build:js` portion of the build script. This ensures the JavaScript files are in place before the `uglify:all` task is run.

Follow up to r61438

Props desrosj.
Fixes #65006. See #64393.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-01 02:34:43 +00:00
Sergey Biryukov
5ed9be981a I18N: Add context for Next/Previous strings in the jQuery UI datepicker.
Follow-up to [37849].

Props timse201, anupkankale.
Fixes #65005.
Built from https://develop.svn.wordpress.org/trunk@62188


git-svn-id: http://core.svn.wordpress.org/trunk@61468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-31 22:04:43 +00:00
audrasjb
71c40e312e Administration: Prevent horizontal scrollbar in contextual help panel.
In [62145], an `::after` CSS rule was added that caused an overflow, resulting in an unintended scrollbar always appearing on Windows OS for example. This changeset removes the related CSS rule which is unnecessary to fix the initial issue. 

Follow-up to [62145].

Props wildworks, SergeyBiryukov, sabernhardt, audrasjb, huzaifaalmesbah, mehrazmorshed, mukesh27.
Fixes #64744.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-31 20:28:43 +00:00
audrasjb
e3b7b0de56 I18N: Provide gettext context to disambiguate translation strings for "Bulk Edit".
The "Bulk Edit" translation string is used for both verbs and nouns, and may have different translations in some Locales. This changeset helps disambuguating these different contexts.

Follow-up to [61255].

Props audrasjb, shailu25.
Fixes #64994.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-31 20:18:42 +00:00
audrasjb
883d5d7bc6 I18N: Provide gettext context to disambiguate translation strings for "Notes".
"Notes" translation string is used in both the Notes features and in the Link Manager, and they can have different meaning in some Locales, like in German for example. This changeset helps disambuguating these different contexts.

Props westonruter, dmsnell, johnbillion.
Fixes #64980.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-31 19:26:41 +00:00
Weston Ruter
e8a10622c6 Build/Test Tools: Remove erroneous PHP tags for translations from QUnit HTML file.
The markup had surely been copied from the PHP source file, as opposed to being copied from the rendered HTML, as it should have been.

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

Follow-up to r41773.

Props westonruter, jonsurrell, desrosj, SergeyBiryukov.
See #64225, #40104.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-31 17:02:44 +00:00
Sergey Biryukov
3a476a9f7d Admin Reskin: Correct vertical alignment of pagination elements in list tables.
Props TobiasBg, rcorrales, opurockey, rahultank, SergeyBiryukov.
Fixes #64975.
Built from https://develop.svn.wordpress.org/trunk@62182


git-svn-id: http://core.svn.wordpress.org/trunk@61463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 21:10:40 +00:00
jorgefilipecosta
0d1ae47cde Connectors: Fix and generalize the API for custom connector types.
Validate `setting_name`, `constant_name`, and `env_var_name` in connector
registration — reject invalid values with `_doing_it_wrong()` instead of
silently falling back.
Change the auto-generated `setting_name` pattern from
`connectors_ai_{$id}_api_key` to `connectors_{$type}_{$id}_api_key` so it
works for any connector type. Built-in AI providers infer their names using
the existing `connectors_ai_{$id}_api_key` convention, preserving backward
compatibility.
Add `constant_name` and `env_var_name` as optional authentication fields,
allowing connectors to declare explicit PHP constant and environment
variable names for API key lookup. AI providers auto-generate these using
the `{CONSTANT_CASE_ID}_API_KEY` convention.
Refactor `_wp_connectors_get_api_key_source()` to accept explicit
`env_var_name` and `constant_name` parameters instead of deriving them from
the provider ID. Environment variable and constant checks are skipped when
not provided.
Generalize REST dispatch, settings registration, and script module data to
work with all connector types, not just `ai_provider`. Settings
registration skips already-registered settings. Non-AI connectors determine
`isConnected` based on key source.
Replace `isInstalled` with `pluginFile` in script module data output to fix
plugin entity ID resolution on the frontend.
Update PHPDoc to reflect current behavior — widen `type` from literal
`'ai_provider'` to `non-empty-string`, document new authentication fields,
and use Anthropic examples throughout.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 14:26:47 +00:00
Weston Ruter
6ddd314762 Code Quality: Replace void with proper return types in Administration PHPDoc annotations.
Replace `void` in union return types with `null` or remove it where the function always returns a value or dies, across 8 files in `wp-admin/includes`. Adds explicit `return null;` statements where functions previously fell through without a return value.

Additionally:
* Adds `@return never` for `media_send_to_editor()` and removes misleading `return` from its callers.
* Removes `void` from return types where the function always returns a value or exits: `write_post()`, `WP_Importer::set_blog()`, `WP_Importer::set_user()`.
* Replaces `mixed|void` with a specific array shape for `WP_Site_Health::perform_test()`.

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

Follow-up to r62178, r62177, r61766, r61719.

Props apermo, xate, westonruter, mukesh27, desrosj.
Fixes #64702.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 06:02:42 +00:00
Weston Ruter
2078bf4cf8 Code Quality: Replace void with proper return types in union PHPDoc annotations.
In PHP's type system, `void` means a function does not return a value and cannot be part of a union type. Many functions in core were documented as returning e.g. `string|void` while actually returning `null` implicitly via bare `return;` statements. This replaces `void` with `null` in union return types, adds explicit `return null;` statements, and updates `@return` annotations across 22 files in `wp-includes`.

Additionally:
* Adds `@return never` for `WP_Recovery_Mode::redirect_protected()`.
* Fixes `WP_Theme_JSON::set_spacing_sizes()` to use `@return void` instead of `@return null|void`.
* Removes `void` from return types where the function always returns a value or dies: `remove_theme_support()`, `WP_Recovery_Mode::handle_error()`.
* Fixes `wp_die()` return type from `never|void` to `void` with clarified description.
* Initializes `$primary` variable in `get_active_blog_for_user()` to prevent a possible undefined variable notice.

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

Follow-up to r62177, r61766, r61719.

Props apermo, xateman, westonruter, parthvataliya, nimeshatxecurify.
See #64704.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 05:32:44 +00:00
Weston Ruter
d8b6a76045 Code Quality: Replace void with proper return types in wpdb and related functions.
Replace `void` in union return types with `null`, `false`, or `never` as appropriate, and add explicit `return null` statements where methods previously fell through without a return value.

Methods updated in `wpdb`: `prepare()`, `print_error()`, `check_connection()`, `get_row()`, `get_col_info()`, `bail()`, `check_database_version()`.

Also adds `@return never` to `dead_db()` and fixes the `@phpstan-return` syntax for `wp_die()`.

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

Props apermo, westonruter, xate, mukesh27, SergeyBiryukov.
Fixes #64703.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 05:07:43 +00:00
Weston Ruter
b3c93f502e Media: Guard against false return values from wp_get_attachment_image_src() and wp_getimagesize().
* Add `is_array()` checks before accessing return values from `wp_get_attachment_image_src()` in `get_oembed_response_data_rich()`, `wp_playlist_shortcode()`, and `wp_prepare_attachment_for_js()`. 
* Guard `wp_getimagesize()` calls within `wp_get_attachment_image_src()` itself.
* Ensure `wp_get_attachment_image_src()` always returns the expected `array{0: string, 1: int, 2: int, 3: bool}` type or `false` by normalizing the filter result with explicit type casting and default values.
* Add `@phpstan-return` annotations to both `wp_get_attachment_image_src()` and `wp_getimagesize()` for the specific array shapes.

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

Props hbhalodia, westonruter, mukesh27, edent, ozgursar, roshniahuja14.
Fixes #64742.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-30 00:17:42 +00:00
Sergey Biryukov
2413d47223 Code Quality: Replace is_integer() with is_int() for consistency.
[https://www.php.net/manual/en/function.is-integer.php is_integer()] is an alias for [https://www.php.net/manual/en/function.is-int.php is_int()]. While they function identically, the WordPress Coding Standards and modern PHP practices generally lean towards using the official function name rather than its alias to maintain consistency across the codebase.

Props Soean, westonruter, SergeyBiryukov.
See #64913.
Built from https://develop.svn.wordpress.org/trunk@62175


git-svn-id: http://core.svn.wordpress.org/trunk@61457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-29 22:31:34 +00:00
Weston Ruter
1545200c50 Tests: Prevent unconditional HTTP request in PluralFormsTest data provider.
Developed in https://github.com/WordPress/wordpress-develop/pull/11382

Follow-up to r41722.

Props westonruter, swissspidy, SergeyBiryukov.
See #41562.
Fixes #41562.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-29 02:41:43 +00:00
Sergey Biryukov
cfb8a82010 Code Quality: Simplify boolean assignments.
This makes minor code simplifications by removing unnecessary ternary operations and directly assigning boolean expressions. These changes make the code easier to read and maintain, but do not alter the underlying logic.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-28 23:50:44 +00:00
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