Sergey Biryukov
d0268b2b69
Themes: Move the test for post-formats
theme support to a more appropriate place.
...
Follow-up to [49344].
See #51390 .
Built from https://develop.svn.wordpress.org/trunk@49354
git-svn-id: http://core.svn.wordpress.org/trunk@49114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-28 15:14:10 +00:00
Sergey Biryukov
e37d1acc1c
Customize: Update parameter name in api.Class.extend()
.
...
This makes the name consistent with the documentation and the `inherits()` function signature.
Props ribaricplusplus, davidbaumwald.
Fixes #51652 .
Built from https://develop.svn.wordpress.org/trunk@49353
git-svn-id: http://core.svn.wordpress.org/trunk@49113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-28 00:45:06 +00:00
Helen Hou-Sandí
a33d6305d1
Twenty Twenty: Correct some textdomains in block patterns.
...
Props justinahinon.
Fixes #51648 . See #51098 .
Built from https://develop.svn.wordpress.org/trunk@49352
git-svn-id: http://core.svn.wordpress.org/trunk@49112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 22:14:05 +00:00
Helen Hou-Sandí
4ca6722c41
Post WordPress 5.6 beta 2 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@49351
git-svn-id: http://core.svn.wordpress.org/trunk@49111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 22:02:08 +00:00
Helen Hou-Sandí
21f3cc781e
WordPress 5.6 Beta 2.
...
Built from https://develop.svn.wordpress.org/trunk@49350
git-svn-id: http://core.svn.wordpress.org/trunk@49110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 21:42:07 +00:00
Helen Hou-Sandí
14558efa83
PHPCS fixes after [49347].
...
See #51098 .
Built from https://develop.svn.wordpress.org/trunk@49349
git-svn-id: http://core.svn.wordpress.org/trunk@49109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 21:23:07 +00:00
Helen Hou-Sandí
bf02276a17
Bundled Themes: Introduce block patterns for Twenty Nineteen.
...
Including some props I missed on the commit for Twenty Twenty, I am sorry.
Props: kjellr, beafialho, melchoyce, ryelle, jffng, bridgetwillard.
Fixes #51099 .
Built from https://develop.svn.wordpress.org/trunk@49348
git-svn-id: http://core.svn.wordpress.org/trunk@49108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 21:15:12 +00:00
Helen Hou-Sandí
6d3300b437
Bundled Themes: Introduce block patterns for Twenty Twenty.
...
Props melchoyce, Anlino, kjellr, ryelle.
Fixes #51098 .
Built from https://develop.svn.wordpress.org/trunk@49347
git-svn-id: http://core.svn.wordpress.org/trunk@49107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 21:01:07 +00:00
Helen Hou-Sandí
9241624e6c
Menus: Better responsive display for accordion items.
...
This only applies to the standalone menu screen; fixes for the customizer will be handled separately.
Props audrasjb, garrett-eclipse.
See #49375 .
Built from https://develop.svn.wordpress.org/trunk@49346
git-svn-id: http://core.svn.wordpress.org/trunk@49106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 20:18:06 +00:00
Sergey Biryukov
a6db16fad0
Upgrade/Install: Adjust a string in core_auto_updates_settings()
for consistency.
...
Props audrasjb, desrosj.
See #50907 .
Built from https://develop.svn.wordpress.org/trunk@49345
git-svn-id: http://core.svn.wordpress.org/trunk@49105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 20:12:06 +00:00
Helen Hou-Sandí
3fc623c202
Post Formats: You have to pass an array of supported post formats.
...
This shows a `_doing_it_wrong()` message and also returns false instead of true if no array of formats is passed in `add_theme_support()`, avoiding a PHP error.
Post formats maintainership comes full circle. 🙃
Props Mista-Flo, sproutchris, garrett-eclipse.
Fixes #51390 .
Built from https://develop.svn.wordpress.org/trunk@49344
git-svn-id: http://core.svn.wordpress.org/trunk@49104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 20:00:06 +00:00
Helen Hou-Sandí
7636806a52
Media: Fix styling for MediaElement player in media modal.
...
Fixes #43640 .
Built from https://develop.svn.wordpress.org/trunk@49343
git-svn-id: http://core.svn.wordpress.org/trunk@49103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 19:40:04 +00:00
Helen Hou-Sandí
cbc1404589
External Libraries: Update jQuery Migrate to 3.3.2-pre.
...
This is a prerelease version to avoid some errors in 5.6 beta 2. We need to be sure that we ship with a released version by 5.6 RC.
Props mweichert.
Fixes #51621 . See #50564 .
Built from https://develop.svn.wordpress.org/trunk@49338
git-svn-id: http://core.svn.wordpress.org/trunk@49099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:59:08 +00:00
Helen Hou-Sandí
85e954aa37
Login: Avoid AJAX error on login screen.
...
This has to do with the password generator, which does not need to generate and cache passwords in JS as that's already done in PHP.
Props adamsilverstein, sarahricker.
Fixes #51613 .
Built from https://develop.svn.wordpress.org/trunk@49337
git-svn-id: http://core.svn.wordpress.org/trunk@49098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:43:07 +00:00
Sergey Biryukov
769b29f962
Build/Test Tools: Add Authorization
headers support to local-env
.
...
This ensures that basic authorization is passed from nginx to PHP.
Props Clorith.
Fixes #51646 .
Built from https://develop.svn.wordpress.org/trunk@49336
git-svn-id: http://core.svn.wordpress.org/trunk@49097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:35:12 +00:00
desrosj
1dcdd946c6
Build/Test Tools: Specify a type when using wp config set
.
...
This prevents an error if constants are not predefined when running the Docker install script while using older combinations of WordPress/PHP/WP-CLI.
See #48301 .
Built from https://develop.svn.wordpress.org/trunk@49335
git-svn-id: http://core.svn.wordpress.org/trunk@49096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:34:06 +00:00
TimothyBlynJacobs
2df94804d4
Site Health, App Passwords: Test if the Authorization header is populated correctly.
...
App Passwords rely on the Authorization header to transport the Basic Auth credentials. For Apache web servers, WordPress automatically includes a RewriteRule to populate the value for servers running in CGI or FastCGI that wouldn't ordinarily populate the value.
This tests if the header is being filled with the expected values. For Apache users, we direct the user to visit the Permalinks settings to flush their permalinks. For all other users, we direct them to a help document on developer.wordpress.org.
Props Clorith, marybaum, TimothyBlynJacobs.
Fixes #51638 .
Built from https://develop.svn.wordpress.org/trunk@49334
git-svn-id: http://core.svn.wordpress.org/trunk@49095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:32:07 +00:00
Helen Hou-Sandí
219079f7a3
Privacy: Show failures before successes for all bulk actions.
...
Props garrett-eclipse.
See #44081 , [49331].
Built from https://develop.svn.wordpress.org/trunk@49333
git-svn-id: http://core.svn.wordpress.org/trunk@49094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 18:19:06 +00:00
Helen Hou-Sandí
f4f72498c0
Privacy: Show notices for both failed and successful bulk actions.
...
Props javorszky, garrett-eclipse, hellofromTonya.
Fixes #44081 .
Built from https://develop.svn.wordpress.org/trunk@49331
git-svn-id: http://core.svn.wordpress.org/trunk@49092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 17:47:08 +00:00
desrosj
24f6f56a71
Twenty Twenty-One: Import the latest changes.
...
For a full list of changes since [49320], see 461dcf9cd...5759e96
.
Props poena, melchoyce, aristath, justinahinon, ryelle.
See #51526 .
Built from https://develop.svn.wordpress.org/trunk@49330
git-svn-id: http://core.svn.wordpress.org/trunk@49091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 17:07:05 +00:00
TimothyBlynJacobs
5df8bf60aa
REST API: Support a broader range of JSON media types.
...
Previously, we only supported `application/json` which prevented using subtypes like `application/activity+json`. This allows for the REST API to `json_decode` the body of requests using a JSON subtype `Content-Type`. Additionally, `wp_die()` now properly sends the error as JSON when a JSON subtype is specified in the `Accept` header.
Props pfefferle.
Fixes #49404 .
Built from https://develop.svn.wordpress.org/trunk@49329
git-svn-id: http://core.svn.wordpress.org/trunk@49090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 16:44:06 +00:00
Sergey Biryukov
72cff29cb6
Posts, Post Types: Check if taxonomy is set for the tax_input
parameter of wp_insert_post()
.
...
This avoids a PHP notice when creating a post with multiple taxonomies both having a default term.
Props yakimun, szaqal21, hareesh-pillai, audrasjb.
Fixes #51320 .
Built from https://develop.svn.wordpress.org/trunk@49328
git-svn-id: http://core.svn.wordpress.org/trunk@49089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 16:42:05 +00:00
Sergey Biryukov
0a4f041f2a
Tests: Rename some files and classes in phpunit/tests/post/
per the naming conventions.
...
https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization
Follow-up to [47780].
See #51344 .
Built from https://develop.svn.wordpress.org/trunk@49327
git-svn-id: http://core.svn.wordpress.org/trunk@49088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 16:09:07 +00:00
Sergey Biryukov
919f1cf461
Docs: Fix typo in {$old_status}_to_{$new_status}
hook description.
...
See #50768 .
Built from https://develop.svn.wordpress.org/trunk@49326
git-svn-id: http://core.svn.wordpress.org/trunk@49087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 15:42:09 +00:00
Andrew Ozz
7c32cbf990
Revert the improvenents to arranging of postboxes/metaboxes, [49179]. The current patch fixes about half a dozen problems, but seems more general improvements are needed to how Screen Options work.
...
See #50699 .
Built from https://develop.svn.wordpress.org/trunk@49325
git-svn-id: http://core.svn.wordpress.org/trunk@49086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 10:47:12 +00:00
youknowriad
3c554f366d
Block Editor: Update the WordPress packages for 5.6 beta 2
...
It contains:
- Fix drop zone indicators for non blocks.
- Fix archives block render function.
- Code block: preserve indentation on paste.
- Turn off autocomplete for token input.
- Fix parent post selector: ensure initial value available, search performed, all results shown.
- Fix gallery block undo issue.
Props isabel_brison.
Fixes #51640 .
Built from https://develop.svn.wordpress.org/trunk@49324
git-svn-id: http://core.svn.wordpress.org/trunk@49085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 09:34:46 +00:00
Sergey Biryukov
18ee84c5c2
Customize: Ensure the New Menu section is properly rendered.
...
Follow-up to [30102], [49101].
Props david.binda, boldgrid, dlh, azaozz, Clorith, westonruter, hellofromTonya.
Fixes #51592 .
Built from https://develop.svn.wordpress.org/trunk@49323
git-svn-id: http://core.svn.wordpress.org/trunk@49084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 02:48:06 +00:00
Sergey Biryukov
6275885400
Bundled Themes: Update latest version for Tested up to:
in readme.txt
files.
...
Props mukesh27.
Fixes #51501 .
Built from https://develop.svn.wordpress.org/trunk@49322
git-svn-id: http://core.svn.wordpress.org/trunk@49083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 02:18:05 +00:00
Sergey Biryukov
0fb5ccd4d0
Docs: Add a @global
tag for $user_id
in WP_Application_Passwords_List_Table::prepare_items()
.
...
Props mukesh27.
Fixes #51633 .
Built from https://develop.svn.wordpress.org/trunk@49321
git-svn-id: http://core.svn.wordpress.org/trunk@49082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 02:12:06 +00:00
desrosj
87b6c253b5
Twenty Twenty-One: Import the latest changes for 5.6 beta 2.
...
For a full list of changes since beta 1, see 9e34dca...e580895
.
Props poena, melchoyce, luminuu, aristath, justinahinon, jffng, ryelle, kishanjasani, rolfsiebers.
See #51526 .
Built from https://develop.svn.wordpress.org/trunk@49320
git-svn-id: http://core.svn.wordpress.org/trunk@49081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 02:00:07 +00:00
Helen Hou-Sandí
8b3071bc1a
Administration: Accommodate long translations for "Posts" in list table headers.
...
This stems from longer translations on the User table, but this will apply to any posts column in a list table. Hyphenation should typically just apply to the column header, as the cell contents are just a count.
This does appear to have some browser inconsistencies, so may need further adjustment in the future.
Props audrasjb, justinahinon.
Fixes #50838 .
Built from https://develop.svn.wordpress.org/trunk@49317
git-svn-id: http://core.svn.wordpress.org/trunk@49079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 23:16:05 +00:00
Peter Wilson
6c92704e10
Taxonomy: Fix values passed to actions in wp_modify_term_count_by_now()
.
...
Replace the `WP_Taxonomy` object with the taxonomy slug in the values passed to the actions `edit_term_taxonomy` and `edited_term_taxonomy` within `wp_modify_term_count_by_now()`.
Follow up to [49141], [49171].
Props Chouby, lcyh78.
Fixes #40351 .
Built from https://develop.svn.wordpress.org/trunk@49316
git-svn-id: http://core.svn.wordpress.org/trunk@49078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 23:07:06 +00:00
Sergey Biryukov
1ce2f12eaf
Docs: Correct description for wp_pre_insert_user_data
filter.
...
Props audrasjb.
Fixes #51637 .
Built from https://develop.svn.wordpress.org/trunk@49314
git-svn-id: http://core.svn.wordpress.org/trunk@49076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 22:53:06 +00:00
Sergey Biryukov
cc7ba27c37
Docs: Correct DocBlock formatting for render_block()
.
...
Follow-up to [49310].
See #51606 .
Built from https://develop.svn.wordpress.org/trunk@49312
git-svn-id: http://core.svn.wordpress.org/trunk@49074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 21:55:10 +00:00
Sergey Biryukov
483b75e682
Docs: Add missing @since
tags for properties in some block editor classes:
...
* `WP_Block_Pattern_Categories_Registry`
* `WP_Block_Patterns_Registry`
* `WP_Block_Supports`
Follow-up to [48156], [49226].
See #50768 .
Built from https://develop.svn.wordpress.org/trunk@49311
git-svn-id: http://core.svn.wordpress.org/trunk@49073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 21:51:08 +00:00
youknowriad
bf5917edf3
Block Editor: Fix WP_Block_Supports class compatibility with Gutenberg-provided class.
...
When using WordPress trunk with Gutenberg master, there's an incompatibility causing
the dynamic block generated classes to be omitted.
This commit refactors the block supports to fix that problem.
Props nosolosw.
Fixes #51606 .
Built from https://develop.svn.wordpress.org/trunk@49310
git-svn-id: http://core.svn.wordpress.org/trunk@49072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 08:31:11 +00:00
Sergey Biryukov
4bb4107f50
General: Use correct value for the speak
property in various CSS files.
...
Follow-up to [49263].
Props hareesh-pillai.
Fixes #51622 .
Built from https://develop.svn.wordpress.org/trunk@49309
git-svn-id: http://core.svn.wordpress.org/trunk@49071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 02:25:09 +00:00
TimothyBlynJacobs
367c97df67
REST API: Prevent PHP warning when metadata schema is missing properties.
...
This switches to the new `rest_default_additional_properties_to_false()` function which doesn't have this issue and deprecates the `WP_REST_Meta_Fields::default_additional_properties_to_false()` method.
Props austin880625.
Fixes #51389 .
Built from https://develop.svn.wordpress.org/trunk@49308
git-svn-id: http://core.svn.wordpress.org/trunk@49070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-25 20:30:08 +00:00
TimothyBlynJacobs
5f5457dff2
Build Tools: Fix running installing composer dependencies using composer 2.0.
...
This updates the `dealerdirect/phpcodesniffer-composer-installer` package to allow installing version `0.7.0` which supports composer 2.0.
Props itowhid06, jrf.
Fixes #51624 .
Built from https://develop.svn.wordpress.org/trunk@49306
git-svn-id: http://core.svn.wordpress.org/trunk@49068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-25 01:14:07 +00:00
Sergey Biryukov
7b2c3a006e
Tests: Correct newly introduced @covers
tags.
...
When global functions are covered, they need to be prefixed with `::` (double colon) to distinguish them from class name.
See https://phpunit.readthedocs.io/en/7.0/annotations.html#covers for more details.
Follow-up to [49000], [49171].
Props jrf.
See #39265 .
Built from https://develop.svn.wordpress.org/trunk@49305
git-svn-id: http://core.svn.wordpress.org/trunk@49067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-25 00:33:04 +00:00
Sergey Biryukov
5770b676b0
Docs: Correct an example in wp_kses_normalize_entities()
description.
...
Props ediamin.
Fixes #51620 .
Built from https://develop.svn.wordpress.org/trunk@49304
git-svn-id: http://core.svn.wordpress.org/trunk@49066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-25 00:14:05 +00:00
TimothyBlynJacobs
19c72d58e7
REST API, XML-RPC: Synchronise empty comment content checks.
...
The REST API and XML-RPC now uses the same detection methodology for empty comment content as `wp_handle_comment_submission()`. Specifically, comments now have their content trimmed and '0' is allowed.
Props jaswrks, rmccue, dd32, rachelbaker, Cawa-93, aduth, TimothyBlynJacobs.
Fixes #43177 .
Built from https://develop.svn.wordpress.org/trunk@49303
git-svn-id: http://core.svn.wordpress.org/trunk@49065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 22:46:09 +00:00
TimothyBlynJacobs
36c4c943ba
REST API: Don't validate status if it hasn't changed.
...
In particular, this allows for sending `status=inherit` to an attachment if it's current status is `inherit`. This status would be rejected because it is an "internal" post status which isn't exposed.
As a general rule, a developer should always be able to PUT back a GET response without error.
Props dfenton, pputzer, TimothyBlynJacobs.
Fixes #40399 .
Built from https://develop.svn.wordpress.org/trunk@49302
git-svn-id: http://core.svn.wordpress.org/trunk@49064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 16:04:05 +00:00
TimothyBlynJacobs
abbc108d19
REST API: Make template handling resilient against plugins setting the global post.
...
Plugins shouldn't be setting the global post object during a REST API request, but if they did this could cause unexpected errors when creating a post with a template.
Props Kipperlenny, TimothyBlynJacobs.
Fixes #49695 .
Built from https://develop.svn.wordpress.org/trunk@49301
git-svn-id: http://core.svn.wordpress.org/trunk@49063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 14:12:05 +00:00
TimothyBlynJacobs
3a01517c90
REST API: Reuse namespace
property instead of the undeclared rest_namespace
.
...
Props itowhid06.
Fixes #48297 .
Built from https://develop.svn.wordpress.org/trunk@49300
git-svn-id: http://core.svn.wordpress.org/trunk@49062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 13:54:06 +00:00
TimothyBlynJacobs
9baba12f00
REST API: Support generating comment up links to custom posts controllers.
...
The comments controller now uses the `rest_get_route_for_post` function introduced in WordPress 5.5 to generate the link. This function is filterable to allow for custom controllers to properly define their REST API route.
Props dsifford, TimothyBlynJacobs.
Fixes #44152 .
Built from https://develop.svn.wordpress.org/trunk@49299
git-svn-id: http://core.svn.wordpress.org/trunk@49061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 13:20:07 +00:00
Sergey Biryukov
4d695ba6b3
Coding Standards: Remove unused $current_role
variable from Add New User form.
...
Follow-up to [9614], [28296].
Props ravipatel.
Fixes #51619 .
Built from https://develop.svn.wordpress.org/trunk@49298
git-svn-id: http://core.svn.wordpress.org/trunk@49060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 12:49:05 +00:00
Sergey Biryukov
10091823f1
Coding Standards: Use consistent formatting for <div class="wrap">
sections in wp-admin/update-core.php
.
...
Follow-up to [28500], [28530].
Props ravipatel.
Fixes #51618 .
Built from https://develop.svn.wordpress.org/trunk@49297
git-svn-id: http://core.svn.wordpress.org/trunk@49059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 12:33:07 +00:00
TimothyBlynJacobs
4aca25b296
REST API: Regenerate wp-api-generated.js after [49276].
...
See #51583 .
Built from https://develop.svn.wordpress.org/trunk@49296
git-svn-id: http://core.svn.wordpress.org/trunk@49058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 04:29:10 +00:00
TimothyBlynJacobs
2d5d7a2aaa
REST API: Deprecate WP_REST_Meta_Fields::register_field()
.
...
This method never worked properly and cannot be fixed due to incompatible method signatures.
Props flixos90, kadamwhite, jnylen0, TimothyBlynJacobs.
Fixes #39959 .
Built from https://develop.svn.wordpress.org/trunk@49295
git-svn-id: http://core.svn.wordpress.org/trunk@49057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-24 04:27:09 +00:00