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
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
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
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
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
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
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
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
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
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
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
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
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
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
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