52689 Commits

Author SHA1 Message Date
Peter Wilson 6ed6234efd Administration: Widen screen options number of items field.
Modifies the Screen Options > Number of items per page field to avoid cropping of three digit numbers when setting a list view to display a lot of items.

Props apermo, audrasjb, darshitrajyaguru97, ekla, gaurangsondagar, jigarkahar, juanmaguitar, khushdoms, peterwilsoncc, sabernhardt, shailu25, shatrumyatra, yusufmudagal.
Fixes #65104.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-27 02:11:46 +00:00
Sergey Biryukov 2ecb40b741 Tests: Move @covers tags to the class-level DocBlock in some block-related tests.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62264


git-svn-id: http://core.svn.wordpress.org/trunk@61544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-26 23:50:44 +00:00
Peter Wilson c54a996add Administration: Resize classic editor slug field for new theme.
Reduces the size and improves the alignment of the post slug field following the re-design of form elements as part of the new admin theme.

Props wildworks, sabernhardt, audrasjb, dhruvang21, shailu25, joedolson, khushdoms, tusharaddweb.
Fixes #65063.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-26 23:06:37 +00:00
audrasjb 6c433e6ec6 Administration: Fix misaligned icon in user profile password field.
This changeset corrects a misalignment issue affecting the show/hide button next to the password field.

Props piyushpatel123, rajdiptank111, ankitkumarshah, andrewssanya, jdahir0789, gautammkgarg, gaurangsondagar, gaisma22, ugyensupport, abduremon, ankitmaru, darshitrajyaguru97, khushdoms, monzuralam.
Fixes #65031.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-26 07:04:43 +00:00
Sergey Biryukov d46ae43eb7 Tests: Add missing @covers tag for register_block_type_from_metadata() tests.
Follow-up to [59132].

Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62261


git-svn-id: http://core.svn.wordpress.org/trunk@61541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-25 18:45:44 +00:00
Sergey Biryukov e252d640b5 Tests: Correct @covers tags for WP_Error tests.
Includes removing redundant tags to help clarify the purpose of each individual test.

Follow-up to [42255], [50339].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-24 18:54:43 +00:00
Sergey Biryukov 4e7c9ced32 Tests: Add missing @covers tags for WP_Block_Parser tests.
Includes moving the data provider after the corresponding test for consistency with the rest of the test suite.

Follow-up to [43751].

Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62259


git-svn-id: http://core.svn.wordpress.org/trunk@61539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-23 22:14:40 +00:00
Peter Wilson 76b56b1a90 Build/Test Tools: Consolidate vendor file copying to ensure .min.js files are minified.
Relocates the copying of vendor JavaScript files back to the `grunt copy:vendor-js` subtask to ensure the files are in place prior to the `grunt uglify` step running to minify the files.

Props desrosj.
Fixes #65007.
See #64393.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-23 05:10:44 +00:00
ramonopoly 18ac9a4220 Block Supports: strip custom CSS from blocks for users without edit_css capability
Adds capability-gated CSS stripping so that when a user without `edit_css` saves a post, any `style.css` block attributes are removed from block comments using `WP_Block_Parser::next_token()`.

Props aaronrobertshaw, audrasjb, dmsnell, glendaviesnz, jonsurrell, ozgursar, ramonopoly, shailu25, westonruter.

Follow-up to [64544].

Fixes #64771.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-23 01:11:38 +00:00
Sergey Biryukov 311e0e9004 I18N: Add context for the Library admin menu item.
Props timse201, sanketparmar, trickster301, audrasjb, jadavsanjay, SergeyBiryukov.
Fixes #64982.
Built from https://develop.svn.wordpress.org/trunk@62256


git-svn-id: http://core.svn.wordpress.org/trunk@61536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-22 23:53:39 +00:00
Weston Ruter dde3a47f0b AI: Validate filtered default request timeout in WP_AI_Client_Prompt_Builder.
This checks that the return value of the `wp_ai_client_default_request_timeout` filter is a non-negative number before passing it to `RequestOptions`. If the filtered value is invalid, it is discarded in favor of the original default of `30.0` and a `_doing_it_wrong()` notice is issued. Without this check, a fatal error would ensue from the exception thrown in `\WordPress\AiClient\Providers\Http\DTO\RequestOptions::validateTimeout()`.

The following static analysis issues are addressed:

* Use `float` instead of `int` for the `wp_ai_client_default_request_timeout` filter parameter.
* Add missing PHP imports for `Message` and `MessagePart` in the PHPDoc for `wp_ai_client_prompt()`.
* Add PHP return type hints for `wp_ai_client_prompt()` and `WP_AI_Client_Cache::getMultiple()`.
* Use native property type hints in `WP_AI_Client_HTTP_Client`.

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

Props westonruter, justlevine, flixos90, khushdoms, darshitrajyaguru97, adrmf25, jarodortegaaraya, tusharaddweb, gaurangsondagar.
Fixes #65094.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-22 18:14:46 +00:00
John Blackbourn 99470d912d Build/Test Tools: Use the exact tag name in version number comments that trail pinned actions.
None of these actions use `v`-prefixed tag names.

See #64227

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


git-svn-id: http://core.svn.wordpress.org/trunk@61534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 17:44:49 +00:00
John Blackbourn 17d92feaa2 Build/Test Tools: Remove unnecessary use of GitHub Actions expressions for values that resolve to "true" or "false" strings.
See #64227

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


git-svn-id: http://core.svn.wordpress.org/trunk@61533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 17:25:48 +00:00
John Blackbourn 3023cc4717 Build/Test Tools: Update Actionlint to the latest version.
See #64227

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


git-svn-id: http://core.svn.wordpress.org/trunk@61532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 16:59:40 +00:00
John Blackbourn 30d3ef0ffc Build/Test Tools: Address some issues in GitHub Actions workflow files as reported by Zizmor.
This removes unnecessarily broad inheritance of secrets, replaces some GitHub Actions expressions with environment variables, removes git credential persistence, and adds documentation to the readme.

See #64227

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


git-svn-id: http://core.svn.wordpress.org/trunk@61531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 16:57:41 +00:00
John Blackbourn 9994a417f4 Build/Test Tools: Add more workflow file linting with Zizmor.
This change introduces Zizmor, which is a tool for linting GitHub Actions workflow files for security weaknesses. This compliments the existing Actionlint scanning.

For more information about Actionlint and Zizmor, see the GitHub Actions Workflow Standards page in the developer handbook: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/github-actions/

Some issues in workflow files that are reported by Zizmor will be addressed in follow-up commits.

Props johnbillion, desrosj.

See #64227

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


git-svn-id: http://core.svn.wordpress.org/trunk@61530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 16:50:43 +00:00
dmsnell dd690d2390 Tests: Print invalid UTF-8 as ASCII to fix hosts test reporting failures.
When serializing test output into XML, invalid UTF-8 bytes lead to a failure to load those test results when they are read. This patch adds code to remap those invalid bytes in an ASCII-readable form, whereas the invalid bytes are separated by parentheses and encoded in their hex form.

This ensures that a proper XML file is generated from the testing results.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11620
Discussed in: https://core.trac.wordpress.org/ticket/31992
Reported in: https://github.com/WordPress/phpunit-test-runner/pull/310

Follow-up to: [62225].

Props agulbra, amykamala, codexdemon, dmsnell, mywp459, rolle.
See #31992.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 14:04:48 +00:00
Sergey Biryukov 496df7de07 Tests: Use assertSame() in WP_AI_Client_Prompt_Builder tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [61700].

Props sagardeshmukh.
See #64324.
Built from https://develop.svn.wordpress.org/trunk@62248


git-svn-id: http://core.svn.wordpress.org/trunk@61528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-21 12:34:45 +00:00
Sergey Biryukov 6fe9d337d1 Tests: Use assertSame() in get_adjacent_post() tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [60733], [61066].

Props sagardeshmukh.
See #64324.
Built from https://develop.svn.wordpress.org/trunk@62247


git-svn-id: http://core.svn.wordpress.org/trunk@61527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-20 23:13:46 +00:00
Sergey Biryukov 33a24cca41 Tests: Add missing @covers tags for some rewrite tests.
Follow-up to [36181], [62244].

Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62246


git-svn-id: http://core.svn.wordpress.org/trunk@61526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-19 22:25:51 +00:00
Sergey Biryukov 4b9731d84e Tests: Use a data provider in a WP_Block_Type_Registry test for invalid block names.
Includes adding missing `@covers` tags.

Follow-up to [43742], [51491].

Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62245


git-svn-id: http://core.svn.wordpress.org/trunk@61525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-18 16:47:39 +00:00
Sergey Biryukov 4ec146973f Tests: Add missing @covers tags for some rewrite tests.
Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62244


git-svn-id: http://core.svn.wordpress.org/trunk@61524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-17 19:52:35 +00:00
Sergey Biryukov f4b017cfd0 Tests: Remove external-http group from a get_theme_feature_list() test.
This particular test checks the list of theme features hardcoded into Core and does not perform an external API request.

Follow-up to [39906].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-16 18:44:43 +00:00
gziolo 2ae77c3be3 AI: Prevent wp_supports_ai filter from overriding the WP_AI_SUPPORT constant.
When `WP_AI_SUPPORT` is explicitly set to `false`, `wp_supports_ai()` now returns early before the filter runs. This ensures the site owner's explicit preference to disable AI cannot be overridden by a plugin via the `wp_supports_ai` filter.

The filter default is now always `true`, since the constant check happens beforehand.

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

Follow-up to [62067].

Props justlevine, westonruter, gziolo, mindctrl, adamsilverstein, johnjamesjacoby, ahortin, nilambar, ozgursar, audrasjb, jeffpaul.
Fixes #64706.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-16 07:38:44 +00:00
gziolo 34c56ec658 Abilities API: Catch exceptions thrown by ability callbacks and return WP_Error.
Wraps `invoke_callback()` in a try/catch so that exceptions thrown by execute or permission callbacks are converted to a `WP_Error` with the `ability_callback_exception` code instead of propagating as uncaught throwables.

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

Props priyankagusani, jamesgiroux, jeffpaul, dkotter, adamsilverstein, justlevine, jorbin, pavanpatil1.
Fixes #65058.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-16 07:24:05 +00:00
Sergey Biryukov 66dd79d2bb Tests: Add missing @covers tags for some multisite tests.
Follow-up to [62213], [62218], [62222].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-15 22:28:47 +00:00
Sergey Biryukov 38018f08f3 Tests: Rename some oEmbed test classes as per the naming conventions.
Follow-up to [37708], [37892], [62224], [62227].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-14 22:31:41 +00:00
ramonopoly f6684fbb82 REVERT r62231: Disable pings/trackbacks for local, development, and staging environments
Commits to trunk have been paused for 7.0.

See: https://make.wordpress.org/core/2026/04/02/the-path-forward-for-wordpress-7-0/

Props arcangelini, cagrimmett, ramonopoly, tyxla, ocean90, khushipatel15.

Follow-up to [64837].

See #64837.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-14 11:38:45 +00:00
wildworks 6f6b1082ae Administration: Fix focus outline being cut off for the metabox collapse and move buttons.
Fixes an issue where the focus outline on metabox collapse buttons and move handles was being clipped.

Props abcd95, audrasjb, brianhogg, darshitrajyaguru97, poena, wildworks.
Fixes #65060.
Built from https://develop.svn.wordpress.org/trunk@62232


git-svn-id: http://core.svn.wordpress.org/trunk@61512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-14 10:46:46 +00:00
ramonopoly 082e9875ba Disable pings/trackbacks for local, development, and staging environments
When WP_ENVIRONMENT_TYPE is not `production`, disable pingbacks and trackbacks.

Otherwise, when `WP_ENVIRONMENT_TYPE` is `local`, `development`, or `staging`, pingbacks and trackbacks are sent when posts are published. This creates confusion on the receiving end and is unnecessary for testing workflows.

Props arcangelini, cagrimmett, ramonopoly, tyxla.

Fixes #64837.


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


git-svn-id: http://core.svn.wordpress.org/trunk@61511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-14 10:26:41 +00:00
wildworks 543046e9f5 Upgrade/Install: Use new default admin color scheme for links on the setup screen.
This changeset updates the link colors on the setup screen and the default `wp_die()` fallback styles to use the new default admin color scheme.

Props audrasjb, darshitrajyaguru97, dhrumilk, hbhalodia, huzaifaalmesbah, ismail0071, mikinc860, pooja-n, shailu25, sumitsingh, vishitshah, wildworks
Fixes #64962. See #64308.
Built from https://develop.svn.wordpress.org/trunk@62230


git-svn-id: http://core.svn.wordpress.org/trunk@61510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-14 10:14:48 +00:00
Sergey Biryukov a7d2707212 Tests: Expand @covers tags for WP_Embed tests.
Includes removing the `external-http` group for a `WP_Embed::run_shortcode()` test which does not perform any HTTP requests.

Follow-up to [50448], [62223], [62228].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-13 07:30:43 +00:00
Sergey Biryukov c889ff0011 Tests: Expand @covers tags for WP_oEmbed tests.
Follow-up to [62223].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-12 14:27:35 +00:00
Sergey Biryukov 29c8a80734 Tests: Rename some oEmbed test classes as per the naming conventions.
Includes moving the data provider after the corresponding test for consistency with the rest of the test suite.

Follow-up to [34903], [62223], [62224].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-11 23:54:42 +00:00
dmsnell 8c39ad063a Email: Add unit tests covering email validation and sanitization. (Take 2)
When the original patch from PR#11552 was merged, it did not include the latest version of the PR code, which had removed a failing test.

This patch removes the failing test to match what ran in the tests on the PR.

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

Follow-up to: [62225].

Props agulbra, akirk, benniledl, dmsnell.
See #31992.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-11 18:47:35 +00:00
dmsnell 4d391636f1 Email: Add unit tests covering email validation and sanitization.
In preparation for later work to allow non-US-ASCII email addresses, this change extends the unit test suite for `is_email()` and adds new tests covering `antispambot()` and `sanitize_email()`.

This work was done collaboratively during WordCamp Vienna, 2026 as a Contributor Challenge in cooperation with and support from ICANN and also GeoTLDs Universal Acceptance Local Initiative.

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

Props agulbra, akirk, benniledl, dmsnell.
See #31992.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-11 14:23:44 +00:00
Sergey Biryukov cbf3fd3072 Tests: Rename some oEmbed test classes as per the naming conventions.
Follow-up to [34903], [62223].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-10 19:48:33 +00:00
Sergey Biryukov cea1840064 Tests: Add missing @covers tags for some oEmbed tests.
Props sagardeshmukh.
See #64225.
Built from https://develop.svn.wordpress.org/trunk@62223


git-svn-id: http://core.svn.wordpress.org/trunk@61503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-09 20:09:30 +00:00
Sergey Biryukov 3ff95922b8 Tests: Add missing @covers tags for some multisite tests.
Follow-up to [62213], [62218].

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


git-svn-id: http://core.svn.wordpress.org/trunk@61502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-04-08 18:43:36 +00: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: https://github.com/WordPress/gutenberg/compare/0d133bf7e7437d65d68a06551f3d613a7d8e4361…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