Commit Graph

52451 Commits

Author SHA1 Message Date
Gilbert Caro
9d6cdea1f5 HostForge upstream setup 2026-04-09 02:49:31 +08:00
jorgefilipecosta
9bc856dd33 Abilities: Strip internal schema keywords from abilities REST responses.
Remove WordPress-internal properties (`sanitize_callback`, `validate_callback`, `arg_options`) from ability `input_schema` and `output_schema` fields in REST responses. These properties are used server-side but are not valid JSON Schema keywords and cause client-side validators to fail.

Props jorgefilipecosta, ocean90, gziolo.
Fixes #65035.
Built from https://develop.svn.wordpress.org/trunk@62221


git-svn-id: http://core.svn.wordpress.org/trunk@61501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-08 15:48:47 +00:00
jonsurrell
f896394e1c Block Hooks: Set ignored blocks meta in REST API response.
Set `_wp_ignored_hooked_blocks` post meta in the REST API response sent from post-like endpoints that support Block Hooks (see `rest_block_hooks_post_types` filter).

Previously, it was enough to set that post meta on write (i.e. save to DB). However, due to the way real-time collaboration syncs posts and reconciles them with content received from the server side, this information is now vital on the client side to ensure hooked blocks aren't duplicated.

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

Props bernhard-reiter, czarate, ingeniumed.
Fixes #65008.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-08 12:26:35 +00:00
Sergey Biryukov
4b0a1a0491 Tests: Add missing @covers tags for some multisite tests.
Follow-up to [62213].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-07 18:38:44 +00:00
Sergey Biryukov
016c342678 Tests: Add missing @covers tags for some multisite tests.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62213


git-svn-id: http://core.svn.wordpress.org/trunk@61493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-06 23:53:30 +00:00
Aaron Jorbin
0213e27437 Revert Register Akismet Anti-Spam as a connector.
This reverts [62193]. The connector for Akismet shouldn't show up when akismet is not installed. The plugin itself can register the connecter when it is activated.

Follow-up to [62193].

See #65012.
Props peterwilsoncc, jorgefilipecosta, johnbillion, eclev91, desrosj, davidbaumwald, jorbin.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-06 19:23:45 +00:00
jorgefilipecosta
d1e3272ac4 Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `0d133bf7e7437d65d68a06551f3d613a7d8e4361` to `e2970ba736edb99e08fb369d4fb0c378189468ee`.
The following changes are included:

- https://github.com/WordPress/gutenberg/pull/76478 Boot: Fix black area below content when sidebar is taller than page c… (https://github.com/WordPress/gutenberg/pull/76764)
- Style Book: Fix missing styles for classic themes in stylebook route (https://github.com/WordPress/gutenberg/pull/76843)
- RTC: Fix stuck "Join" link in post list when lock expires (https://github.com/WordPress/gutenberg/pull/76795)
- Icon: Fix center alignment in the editor for classic themes (https://github.com/WordPress/gutenberg/pull/76878)
- RTC: Fix notes not syncing between collaborative editors (https://github.com/WordPress/gutenberg/pull/76873)
- Latest Comments: Fix v1 deprecated block missing supports (https://github.com/WordPress/gutenberg/pull/76877)
- Connectors: Add Akismet as a default connector (https://github.com/WordPress/gutenberg/pull/76828)
- Restore with compaction update (https://github.com/WordPress/gutenberg/pull/76872)
- Improve JSDoc for abilities API (https://github.com/WordPress/gutenberg/pull/76824)
- Connectors: Replace plugin.slug with plugin.file (https://github.com/WordPress/gutenberg/pull/76909)
- Block visibility badge: use canvas iframe for viewport detection (https://github.com/WordPress/gutenberg/pull/76889)
- Connectors: Update help text from 'reset' to 'manage' (https://github.com/WordPress/gutenberg/pull/76963)
- Connectors: Hide Akismet unless already installed (https://github.com/WordPress/gutenberg/pull/76962)
- Wrap sync update processing in try/catch (https://github.com/WordPress/gutenberg/pull/76968)
- Backport: Improve validation and permission checks for `WP_HTTP_Polling_Sync_Server` (https://github.com/WordPress/gutenberg/pull/76987)
- Connectors: account for mu-plugins when resolving plugin.file status (https://github.com/WordPress/gutenberg/pull/76994)


A full list of changes can be found on GitHub: 0d133bf7e7…e2970ba736edb99e08fb369d4fb0c378189468ee.

Log created with:

git log --reverse --format="- %s" 0d133bf7e7437d65d68a06551f3d613a7d8e4361..e2970ba736edb99e08fb369d4fb0c378189468ee | 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@62209


git-svn-id: http://core.svn.wordpress.org/trunk@61489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-06 17:33:50 +00:00
Sergey Biryukov
27723a03e1 Tests: Move wp_dropdown_languages() tests to their own file.
This aims to make the tests more discoverable and easier to expand.

Follow-up to [36631], [39169], [43359], [44514].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-05 23:14:49 +00:00
Sergey Biryukov
41546e142b Tests: Adjust Unicode tests for consistency.
Includes:
* Adding missing `@covers` tags.
* Correcting test class names as per the naming conventions.
* Moving `wp_check_invalid_utf8()` tests to their own file, separate from `wp_scrub_utf8()`.

Follow-up to [60630], [60793], [61000].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-04 23:18:45 +00:00
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