Sergey Biryukov
26e1072d65
Build/Test Tools: Bump devDependencies for WordPress 5.4.
...
Props ayeshrajans, garrett-eclipse.
Fixes #49547 .
Built from https://develop.svn.wordpress.org/trunk@47404
git-svn-id: http://core.svn.wordpress.org/trunk@47191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-02 01:54:13 +00:00
Sergey Biryukov
b193d0a34b
Tests: Add a unit test to ensure the "Supported Versions" section of GitHub Security Policy always includes the latest stable branch.
...
See #48667 , #48521 .
Built from https://develop.svn.wordpress.org/trunk@47403
git-svn-id: http://core.svn.wordpress.org/trunk@47190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-02 01:13:03 +00:00
Sergey Biryukov
e041a3a8f3
Docs: Use more specific type in parameter descriptions for is_page()
, is_single()
, is_singular()
, and their WP_Query
counterpart methods.
...
Props marekdedic, shaharia.azam, shaampk1.
Fixes #48354 . See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47402
git-svn-id: http://core.svn.wordpress.org/trunk@47189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 17:29:06 +00:00
Sergey Biryukov
abce2d8d6c
Docs: Synchronize parameter descriptions for conditional tags with their WP_Query
counterpart methods.
...
See #48354 , #48303 .
Built from https://develop.svn.wordpress.org/trunk@47401
git-svn-id: http://core.svn.wordpress.org/trunk@47188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 17:21:06 +00:00
Sergey Biryukov
f82fd2c436
Docs: Use more specific type in parameter description for wp_unslash()
.
...
Props marekdedic.
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47400
git-svn-id: http://core.svn.wordpress.org/trunk@47187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 16:26:05 +00:00
Sergey Biryukov
7ca7727ec0
Docs: Use more specific type in description for _WP_Dependency::$deps
.
...
Props marekdedic.
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47399
git-svn-id: http://core.svn.wordpress.org/trunk@47186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 16:24:04 +00:00
John Blackbourn
251d77e1a1
Docs: Miscellaneous docs fixes and improvements.
...
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47398
git-svn-id: http://core.svn.wordpress.org/trunk@47185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 10:40:07 +00:00
John Blackbourn
056dad9c2c
Docs: Use more specific types in parameter descriptions in place of mixed
.
...
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47397
git-svn-id: http://core.svn.wordpress.org/trunk@47184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 10:38:07 +00:00
John Blackbourn
bf8c4ee5c6
Docs: Correct the parameter documentation of the request_filesystem_credentials
filter.
...
See #48303
Built from https://develop.svn.wordpress.org/trunk@47396
git-svn-id: http://core.svn.wordpress.org/trunk@47183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-03-01 10:33:04 +00:00
Sergey Biryukov
fcff974c33
Privacy: Make the progress indicator for export and erasure visible even if not hovered over.
...
Follow-up to [47246].
Props pbiron, garrett-eclipse.
Fixes #44264 .
Built from https://develop.svn.wordpress.org/trunk@47395
git-svn-id: http://core.svn.wordpress.org/trunk@47182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-29 23:45:07 +00:00
John Blackbourn
46674e2367
Docs: Correct and improve the docs for some media related functions.
...
See #48303
Built from https://develop.svn.wordpress.org/trunk@47394
git-svn-id: http://core.svn.wordpress.org/trunk@47181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-29 16:49:07 +00:00
ianbelanger
7f26b262b2
Bundled Themes: Twenty Twenty searchform.php error.
...
Fixes phpcs error in the searchform.php file. The variables in this file were not prefixed correctly.
Props fahimmurshed.
Fixes #49523 .
Built from https://develop.svn.wordpress.org/trunk@47393
git-svn-id: http://core.svn.wordpress.org/trunk@47180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-28 20:56:06 +00:00
ianbelanger
3bfa7b9ef9
Bundled Themes: Twenty Thirteen update calendar widget styles for 5.4 markup.
...
Fixes the alignment of month links in the calendar widget with the changes in version 5.4
Props sabernhardt.
Fixes #49546 .
Built from https://develop.svn.wordpress.org/trunk@47392
git-svn-id: http://core.svn.wordpress.org/trunk@47179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-28 20:07:07 +00:00
Sergey Biryukov
cbe5f9963a
Docs: Improve documentation for WP_REST_Attachments_Controller
.
...
This adds a missing DocBlock for `::register_routes()` and parameter descriptions for `::post_process_item()`.
Includes minor documenation fixes in other REST API classes for consistency.
Props dkarfa, mukesh27, SergeyBiryukov.
Fixes #48841 .
Built from https://develop.svn.wordpress.org/trunk@47391
git-svn-id: http://core.svn.wordpress.org/trunk@47178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-28 12:31:08 +00:00
Sergey Biryukov
eb524c0b38
Docs: Improve documentation for various metadata functions.
...
This adds a more specific description for accepted object types: `post`, `comment`, `term`, `user`, or any other object type with an associated meta table.
Props sheparddw, kraftbj, DrewAPicture, SergeyBiryukov.
Fixes #45464 .
Built from https://develop.svn.wordpress.org/trunk@47390
git-svn-id: http://core.svn.wordpress.org/trunk@47177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-28 12:14:08 +00:00
Sergey Biryukov
32be7d6460
Coding Standards: Update PHPCS Composer plugin to v0.6.0.
...
Release log: https://github.com/Dealerdirect/phpcodesniffer-composer-installer/releases/tag/v0.6.0
Props jrf.
See #49222 .
Built from https://develop.svn.wordpress.org/trunk@47389
git-svn-id: http://core.svn.wordpress.org/trunk@47176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-28 01:40:05 +00:00
Sergey Biryukov
19268546a5
Twenty Twenty: Replace quotation marks in starter content with HTML entities.
...
Props fahimmurshed.
Fixes #49534 .
Built from https://develop.svn.wordpress.org/trunk@47388
git-svn-id: http://core.svn.wordpress.org/trunk@47175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-27 22:00:07 +00:00
Sergey Biryukov
50afd0aa1b
Docs: Add a reference to WP_Customize_Panel::__construct()
for information on accepted arguments in WP_Customize_Manager::add_panel()
.
...
Synchronize the documentation between two places, use `WP_Customize_Panel::__construct()` as the canonical source.
Props iaaxpage, marekdedic.
Fixes #48344 .
Built from https://develop.svn.wordpress.org/trunk@47387
git-svn-id: http://core.svn.wordpress.org/trunk@47174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-27 20:36:07 +00:00
Sergey Biryukov
9043b9833f
Docs: Add a reference to WP_Customize_Section::__construct()
for information on accepted arguments in WP_Customize_Manager::add_section()
.
...
Synchronize the documentation between two places, use `WP_Customize_Section::__construct()` as the canonical source.
Props amolv, marekdedic.
Fixes #48346 .
Built from https://develop.svn.wordpress.org/trunk@47386
git-svn-id: http://core.svn.wordpress.org/trunk@47173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-27 20:29:06 +00:00
Sergey Biryukov
569319f553
Docs: Clarify the type of theme_supports
argument in various Customizer classes.
...
Props marekdedic.
See #48347 .
Built from https://develop.svn.wordpress.org/trunk@47385
git-svn-id: http://core.svn.wordpress.org/trunk@47172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-27 20:23:06 +00:00
Sergey Biryukov
8c5a8f1811
Docs: Add a reference to WP_Customize_Setting::__construct()
for information on accepted arguments in WP_Customize_Manager::add_setting()
.
...
Synchronize the documentation between two places, use `WP_Customize_Setting::__construct()` as the canonical source.
Props tmanoilov, marekdedic.
Fixes #48347 .
Built from https://develop.svn.wordpress.org/trunk@47384
git-svn-id: http://core.svn.wordpress.org/trunk@47171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-27 20:09:06 +00:00
Sergey Biryukov
ac9b6fcef8
Docs: Use a consistent description for the $manager
parameter in various Customizer class constructions.
...
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47383
git-svn-id: http://core.svn.wordpress.org/trunk@47170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-26 15:33:05 +00:00
Sergey Biryukov
3d75b5bac5
Docs: Add a @see
reference to WP_Customize_Control::__construct()
in child class constructors.
...
Follow-up to [47363], [47364].
See #48343 , #48348 .
Built from https://develop.svn.wordpress.org/trunk@47382
git-svn-id: http://core.svn.wordpress.org/trunk@47169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-26 13:30:08 +00:00
Sergey Biryukov
9bb8831642
Build/Test Tools: Remove redundant Tests_Post_Types::register_post_type()
helper method, use register_post_type()
directly.
...
Props gh640, varunshanbhag.
Fixes #49365 .
Built from https://develop.svn.wordpress.org/trunk@47381
git-svn-id: http://core.svn.wordpress.org/trunk@47168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-26 13:18:07 +00:00
Andrew Ozz
c2bea683a2
Build Tools: Do not delete the (now committed) script-loader-packages.php
file when running clean:js
and copy it to /build. Fixes cases when running grunt watch
or -dev
where that file may be deleted and not recreated.
...
See #48154 .
Built from https://develop.svn.wordpress.org/trunk@47380
git-svn-id: http://core.svn.wordpress.org/trunk@47167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-26 05:15:09 +00:00
jorgefilipecosta
218cd5f4c2
Post WordPress 5.4 Beta 3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@47379
git-svn-id: http://core.svn.wordpress.org/trunk@47166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 22:13:08 +00:00
jorgefilipecosta
3c8112e912
WordPress 5.4 Beta 3.
...
Built from https://develop.svn.wordpress.org/trunk@47378
git-svn-id: http://core.svn.wordpress.org/trunk@47165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 21:56:07 +00:00
Sergey Biryukov
3adea27d1c
Block Editor: Update wp-includes/assets/script-loader-packages.php
.
...
Follow-up to [47352], [47354].
Props aduth, ocean90, garrett-eclipse.
Fixes #49506 .
Built from https://develop.svn.wordpress.org/trunk@47377
git-svn-id: http://core.svn.wordpress.org/trunk@47164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 21:45:06 +00:00
Sergey Biryukov
ab0cf0aa51
Privacy: Switch buttons in Next Steps column of privacy request tables to break-word
for better legibility on various screen sizes.
...
Props garrett-eclipse, afercia, nrqsnchz.
Fixes #46304 .
Built from https://develop.svn.wordpress.org/trunk@47376
git-svn-id: http://core.svn.wordpress.org/trunk@47163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 21:01:06 +00:00
Sergey Biryukov
8136532954
Accessibility: Media: Hide the invisible "file upload button" on media views from assistive technologies.
...
The button is visually hidden, but was announced by screen readers in workflows unrelated to file uploading, leading to confusion.
Props afercia, audrasjb, azaozz.
Fixes #47611 .
Built from https://develop.svn.wordpress.org/trunk@47375
git-svn-id: http://core.svn.wordpress.org/trunk@47162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 20:44:06 +00:00
Sergey Biryukov
1a9b7f8737
General: Introduce HTML classes in get_calendar()
for easier CSS targeting:
...
* `.wp-calendar-table` for the `<table>` element.
* `.wp-calendar-nav` for the navigation wrapper.
* `.wp-calendar-nav-prev` for the previous month link.
* `.wp-calendar-nav-next` for the next month link.
Replace `#prev` and `#next` HTML IDs with `.wp-calendar-nav-prev` and `.wp-calendar-nav-next` classes.
Props sabernhardt, BackuPs, audrasjb, jorbin.
Fixes #39763 .
Built from https://develop.svn.wordpress.org/trunk@47374
git-svn-id: http://core.svn.wordpress.org/trunk@47161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 20:30:07 +00:00
Sergey Biryukov
153eb7537e
Docs: In update_option()
, remove an inaccurate statement about the $autoload
value for new options.
...
If the option does not exist, it will be created with whatever was passed to the `$autoload` parameter, `'yes'` being only the default value.
Props leogermani.
Fixes #48357 .
Built from https://develop.svn.wordpress.org/trunk@47373
git-svn-id: http://core.svn.wordpress.org/trunk@47160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 20:08:07 +00:00
Sergey Biryukov
3a333ef030
Coding Standards: Use strict comparison for normalize_whitespace()
checks when comparing revisions or autosaves.
...
Props dkarfa, itowhid06, TimothyBlynJacobs.
Fixes #47965 .
Built from https://develop.svn.wordpress.org/trunk@47372
git-svn-id: http://core.svn.wordpress.org/trunk@47159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 19:35:09 +00:00
Sergey Biryukov
8b0a0c44aa
Widgets: Create a unique HTML ID for the <ul>
element of Recent Comments widget if more than one instance is displayed on the page.
...
Props peterwilsoncc, audrasjb, birgire, justinahinon, mbrailer, desrosj.
Fixes #46747 .
Built from https://develop.svn.wordpress.org/trunk@47371
git-svn-id: http://core.svn.wordpress.org/trunk@47158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 19:29:06 +00:00
Sergey Biryukov
00f110740b
Bootstrap/Load: In wp_magic_quotes()
, revert the type change to string for REQUEST_TIME
and REQUEST_TIME_FLOAT
values, which should retain their proper type.
...
Among other things, this preserves compatibility of WP with PHPUnit Code Coverage generation.
Props jrf, Veraxus, Rarst.
See #48605 .
Built from https://develop.svn.wordpress.org/trunk@47370
git-svn-id: http://core.svn.wordpress.org/trunk@47157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 18:33:06 +00:00
Sergey Biryukov
1e81c20ff5
Docs: In wp_insert_user()
, correct @type
for rich_editing
, syntax_highlighting
, comment_shortcuts
, and show_admin_bar_front
arguments.
...
Follow-up to [47368].
See #49087 .
Built from https://develop.svn.wordpress.org/trunk@47369
git-svn-id: http://core.svn.wordpress.org/trunk@47156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 18:20:06 +00:00
Sergey Biryukov
2cd5292def
Docs: In wp_insert_user()
, clarify that rich_editing
, syntax_highlighting
, comment_shortcuts
, and show_admin_bar_front
arguments accept true
or false
as a string literal, not boolean.
...
Props garrett-eclipse, audrasjb, valentinbora, bilgilabs, SergeyBiryukov.
Fixes #49087 .
Built from https://develop.svn.wordpress.org/trunk@47368
git-svn-id: http://core.svn.wordpress.org/trunk@47155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 18:16:07 +00:00
Sergey Biryukov
89689e5ba9
Docs: Clarify in WP_Customize_Manager::remove_*()
methods that removing a setting, panel, section, or control does not destroy the class instance or remove its filters.
...
Props dlh, fgiannar, jon81, westonruter.
Fixes #48747 .
Built from https://develop.svn.wordpress.org/trunk@47367
git-svn-id: http://core.svn.wordpress.org/trunk@47154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 17:50:05 +00:00
Sergey Biryukov
5308f570cb
Comments: Restore the fourth parameter of comments_number()
as $post_id
, for consistency with get_comments_number_text()
.
...
The parameter was previously used as the number of comments, marked as deprecated in [5101].
Given that it's been deprecated for the last 13 years, it should be safe to undeprecate and repurpose it for a cleaner function signature, instead of adding a fifth parameter.
Follow-up to [47276].
Fixes #48772 .
Built from https://develop.svn.wordpress.org/trunk@47366
git-svn-id: http://core.svn.wordpress.org/trunk@47153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 17:34:08 +00:00
Sergey Biryukov
b7c69ce058
Widgets: Avoid an overflow issue in widget controls that include <select>
form fields.
...
Props alexischenal, audrasjb, dkarfa.
Fixes #49401 .
Built from https://develop.svn.wordpress.org/trunk@47365
git-svn-id: http://core.svn.wordpress.org/trunk@47152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 17:04:07 +00:00
Sergey Biryukov
d51c720d2f
Docs: Add a reference to WP_Customize_Control::__construct()
for information on accepted arguments in WP_Customize_Manager::add_control()
.
...
Synchronize the documentation between two places, use `WP_Customize_Control::__construct()` as the canonical source.
Props hAmpzter, marekdedic, SergeyBiryukov.
Fixes #48343 .
Built from https://develop.svn.wordpress.org/trunk@47364
git-svn-id: http://core.svn.wordpress.org/trunk@47151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 16:41:07 +00:00
Sergey Biryukov
cfc27d08ce
Docs: Add a reference to WP_Customize_Control::__construct()
for information on accepted arguments to override class property defaults in child classes.
...
Props marcio-zebedeu, marekdedic.
Fixes #48348 .
Built from https://develop.svn.wordpress.org/trunk@47363
git-svn-id: http://core.svn.wordpress.org/trunk@47150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 16:21:07 +00:00
K. Adam White
44e1bbef85
REST API: Correctly infer empty objects passed via query parameters.
...
Permit passing an empty object as the string "?obj=". The type of the passed empty argument is inferred from the registered schema.
Props TimothyBlynJacobs, steffanhalv, schlessera, dd32.
Fixes #42961 .
Built from https://develop.svn.wordpress.org/trunk@47362
git-svn-id: http://core.svn.wordpress.org/trunk@47149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 15:34:07 +00:00
K. Adam White
a5f16272dd
REST API: Permit access to the themes controller if user can edit any post type.
...
Check a more exhaustive list of post type editing caps beyond "edit_post" to ensure custom user roles with access to to specific post types may still use block editor functionality depending on theme features.
Props miyauchi, TimothyBlynJacobs.
Fixes #46723 .
Built from https://develop.svn.wordpress.org/trunk@47361
git-svn-id: http://core.svn.wordpress.org/trunk@47148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 15:20:08 +00:00
K. Adam White
8faf366ab9
REST API: Apply all relevant block rendering filters when rendering block previews.
...
Several filters were introduced to the render_block method since the initial implementation of the block-renderer/ endpoints, causing the output of those endpoints to diverge from the rendered content of blocks on the frontend.
Props kadamwhite, TimothyBlynJacobs, miinasikk.
Fixes #49387 .
Built from https://develop.svn.wordpress.org/trunk@47360
git-svn-id: http://core.svn.wordpress.org/trunk@47147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 15:05:06 +00:00
Sergey Biryukov
67a6527d51
Script Loader: Improve performance of wp_script_is()
for scripts registered with complex dependencies.
...
This switches `WP_Dependencies::recurse_deps()` from recursively checking the same handles over and over again to keep a flattened array of queued items and their dependencies for faster lookup in `WP_Dependencies::query()`.
Props superdav42.
Fixes #46469 .
Built from https://develop.svn.wordpress.org/trunk@47359
git-svn-id: http://core.svn.wordpress.org/trunk@47146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 13:42:05 +00:00
Sergey Biryukov
c60ea3261f
Docs: Add a @since
note for including delete_posts
in default capabilities in get_post_type_capabilities()
.
...
Follow-up to [47357].
See #30991 .
Built from https://develop.svn.wordpress.org/trunk@47358
git-svn-id: http://core.svn.wordpress.org/trunk@47145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 12:55:08 +00:00
Sergey Biryukov
aaccfc063f
Posts, Post Types: Ensure delete_posts
is included in default post type capabilities regardless of map_meta_cap
value.
...
This resolves PHP notices in a few places in core where this capability is checked.
Props Mte90, johnbillion, dipesh.kakadiya, jipmoors, bamadesigner, dd32, johnjamesjacoby, xedin.unknown, flixos90, SergeyBiryukov.
Fixes #30991 .
Built from https://develop.svn.wordpress.org/trunk@47357
git-svn-id: http://core.svn.wordpress.org/trunk@47144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 12:50:06 +00:00
Sergey Biryukov
1a090b3385
Customize: When a menu item is removed from the menu, uncheck its source item on the available items panel.
...
Props donmhico, garrett-eclipse, audrasjb.
Fixes #46830 .
Built from https://develop.svn.wordpress.org/trunk@47356
git-svn-id: http://core.svn.wordpress.org/trunk@47143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 11:14:08 +00:00
Sergey Biryukov
556c6d80d8
Script Loader: Remove unnecessary reference sign from function definitions in script loader.
...
This resolves PHP warnings when extensions like `php_uopz` or `php_tideways_xhprof` are in use.
Object variables in PHP 5+ contain a reference to the object, and it's the reference that's passed around.
Props jqz, killerbishop, Mte90, TJNowell, jorbin, pento, pcarvalho, valentinbora, SergeyBiryukov.
Fixes #44979 .
Built from https://develop.svn.wordpress.org/trunk@47355
git-svn-id: http://core.svn.wordpress.org/trunk@47142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-25 00:59:06 +00:00