WordPress commits: wp-trunk branch

git: a6bb012
svn: r48848
1 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 17:23:52 +0000
Tests: Correct a number of malformed `@covers` tags.
As per the documentation of the `@covers` tag, global functions being covered should be prefixed with `::`. Also, the `()` after the function name is redundant.

Follow-up to [39918].

Props jrf.
See #50267.
No action taken yet
git: e353e26
svn: r48847
2 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 17:22:28 +0000
Build/Test Tools: Update code coverage setup in the `phpunit.xml.dist` file to point to the `build` directory.
This makes the configuration consistent with the `WP_RUN_CORE_TESTS` constant being set to `1` in the same config file.

Additionally, update the list to be in line with the current codebase, excluding the plugins and themes bundled with WordPress core from being considered for code coverage.

Note: If you have a local `phpunit.xml` file that changes the `WP_RUN_CORE_TESTS` constant to `0`, you should also - in the same file - change the code coverage setup to use the `src` directory.

Follow-up to [42665], [43311].

Props jrf, mmarco9.
See #50267.
No action taken yet
git: 631f440
svn: r48846
3 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 14:38:40 +0000
Tests: Update `wp-api-generated.js` to reflect the new "Reusable Blocks" post type label.
Follow-up to [48829].

See #50755.
No action taken yet
git: cc7fa67
svn: r48845
4 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 14:34:06 +0000
General: Ensure `svn:eol-style` is consistently set for all recently added files.
Fixes #51113.
No action taken yet
git: c90037c
svn: r48844
5 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 03:46:41 +0000
Tests: Clear any previous term IDs from the metadata lazyloader queue in term meta lazy-loading test.
This fixes random test failures when one of the term IDs from previous tests coincides with the orphan term ID from this test that should not be lazy-loaded.

Follow-up to [34529], [36566].

Fixes #51109.
No action taken yet
git: 380145e
svn: r48843
6 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-23 00:06:04 +0000
Docs: Update the description for the `$legacy` parameter of `wp_count_terms()` for consistency with `get_terms()`.
Follow-up to [48840].

See #36399.
No action taken yet
git: 153d07b
svn: r48842
7 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-22 01:52:42 +0000
REST API: In `WP_REST_Block_Directory_Controller::get_items()`, make sure the blocks data for a plugin is not empty before proceeding.
This avoids a PHP notice if the API returns a plugin with empty data for `blocks` key.

Props khag7, TwentyZeroTwo, justinahinon, TimothyBlynJacobs, dd32, SergeyBiryukov.
Fixes #51018.
No action taken yet
git: 2e2ef9e
svn: r48841
8 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-22 00:03:01 +0000
Editor: Use `wp_add_inline_script()` instead of `wp_localize_script()` to pass the `_wpMetaBoxUrl` value to the `wp-editor` script.
This fixes a PHP 8 "Only the first byte will be assigned to the string offset" warning on Edit Post screen.

The correct usage of `wp_localize_script()` is to pass an array of data, not a string.

Fixes #51108.
No action taken yet
git: 0228dd6
svn: r48840
9 of 4634
Author
Felix Arntz <[email protected]> 2020-08-21 22:30:06 +0000
Taxonomy: Allow for `wp_count_terms( $args )` signature, making passing a taxonomy optional.
This brings `wp_count_terms()` in line with other taxonomy functions such as `get_terms()` which technically no longer require a taxonomy. Similar to the previously modified functions, no deprecation warning is triggered when using the legacy signature.

Fixes #36399.
No action taken yet
git: 3b1d1bf
svn: r48839
10 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-21 21:49:02 +0000
Code Modernization: Fix PHP 8 "ArgumentCountError: array_merge() does not accept unknown named parameters" fatal error in `retrieve_widgets()`.
As per the documentation of `call_user_func_array()`, the `$param_arr` should be a (numerically) indexed array, not a string-keyed array.

As we can use the spread operator in PHP 5.6+, there isn't really any need to use `call_user_func_array()` anyhow, we can call the `array_merge()` function directly.

The caveat to this is that the spread operator only works on numerically indexed arrays, so we need to wrap the `$sidebars_widgets` variable in a call to `array_values()` when using the spread operator.

Using `array_values()` in the existing `call_user_func_array()` call would also have solved this, but the solution now proposed, has the added benefit of getting rid of the overhead of `call_user_func_array()`.

Props jrf.
See #50913.
No action taken yet
git: 29bfc56
svn: r48838
11 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-21 21:32:49 +0000
Code Modernization: Fix PHP 8 "argument must be passed by reference, value given" error in `WP_Comment_Query::get_comments()`.
The WP native `get_comment()` function expects the first argument `$comment` to be passed by reference.

The PHP `array_map()` function, however, passes by value, not by reference, resulting in an "arguments must be passed by reference, value given" error.

The PHP native `array_walk()` function does pass by reference. Using this prevents the error on PHP 8 and maintains the existing behaviour on PHP < 8.

Props jrf.
See #50913.
No action taken yet
git: 387bbeb
svn: r48837
12 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-21 15:40:56 +0000
Twenty Nineteen: Remove trailing commas after selectors in `style-editor.scss`.
Remove one empty CSS block.

Props justinahinon.
Fixes #51095.
No action taken yet
git: 493a88c
svn: r48836
13 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-21 01:11:19 +0000
Privacy: Avoid a PHP 7.4 notice in `WP_Privacy_Policy_Content::text_change_check()`.
When iterating over the items stored in '_wp_suggested_privacy_policy_content` meta value for the Privacy Policy page, make sure the item is an array before accessing its properties.

Props treibstoff.
Fixes #51084.
No action taken yet
git: e87d86b
svn: r48835
14 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-21 00:41:43 +0000
Docs: Correct references to `WP_Filesystem_Base` methods in various DocBlocks.
Props pbiron.
Fixes #51087.
No action taken yet
git: 5ad8969
svn: r48834
15 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-20 13:11:36 +0000
Customize: Add `/` character to `<img>` tag in `WP_Customize_Manager` and `WP_Customize_Header_Image_Control` JS templates.
While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core.

Props laxman-prajapati.
Fixes #51077.
No action taken yet
git: 1b78e49
svn: r48832
16 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-20 10:39:12 +0000
Docs: Update documentation for `get_custom_logo()` and `the_custom_logo()` to mention the `unlink-homepage-logo` theme feature.
Follow-up to [48039], [48283], [48749], [48757], [48758].

Props sabernhardt.
Fixes #51075.
No action taken yet
git: ca5c4ce
svn: r48831
17 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 16:33:02 +0000
Coding Standards: Fix WPCS issue in [48830].
See #51044.
No action taken yet
git: 62562f8
svn: r48830
18 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 16:06:27 +0000
Tests: Update unit tests to account for `comment_agent` and `comment_author_IP` values being passed to the `preprocess_comment` filter.
See #51044.
No action taken yet
git: de70dab
svn: r48829
19 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-19 13:38:56 +0000
Editor: Update the post type labels for the reusable blocks post type.
Previously, the labels for the reusable block post type were just “block”. The document settings tab in the block editor has been changed to use the post type label specified instead to be more specific. Changing the reusable block post type labels to “reusable block” prevents two “Block” tabs from showing in the editor.

Props desaiuditd, peterwilsoncc.
Fixes #50755.
No action taken yet
git: ab12557
svn: r48827
20 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 12:29:34 +0000
Docs: Add a `@since` note to `register_rest_route()` about the `_doing_it_wrong()` notice when the required `permission_callback` argument is not set.
Follow-up to [48526].

Props psykro.
Fixes #51060.
No action taken yet
git: de73a6a
svn: r48826
21 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 02:44:38 +0000
Docs: Improve description for `WP_Admin_Bar::add_group()`.
Props stevenlinx.
Fixes #50779.
No action taken yet
git: c101a86
svn: r48825
22 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 02:25:46 +0000
Bundled Themes: Correct punctuation in "Your comment is awaiting moderation" string.
Props llizard, mayankmajeji.
Fixes #49867.
No action taken yet
git: 27a2494
svn: r48824
23 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 02:25:13 +0000
Comments: Correct punctuation in "Your comment is awaiting moderation" string in `Walker_Comment`.
Props llizard.
See #49867.
No action taken yet
git: 2b3bf40
svn: r48823
24 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 01:57:29 +0000
Comments: Revert unintended changes from [48822].
See #51044.
No action taken yet
git: 5f86129
svn: r48822
25 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-19 01:55:12 +0000
Comments: Make sure the comment data passed to the `preprocess_comment` filter includes the `comment_agent` and `comment_author_IP` values.
Props zodiac1978, SergeyBiryukov.
Fixes #51044.
No action taken yet
git: c65973e
svn: r48820
26 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-18 20:36:42 +0000
Plugins: Avoid a PHP notice if the `update-supported` key in plugin data is not set.
Props sanzeeb3.
Fixes #51052.
No action taken yet
git: 5cec68d
svn: r48818
27 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-18 15:16:57 +0000
Build/Test Tools: Update several NPM dependencies.
These updates were applied by running `npm audit fix`.

See #50769.
No action taken yet
git: 76c599c
svn: r48817
28 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-18 15:08:19 +0000
Formatting: Make the check for empty text in `wp_trim_excerpt()` more resilient.
This addresses a regression in [47808], which caused excerpts to be generated from post content if an empty string is passed, but not for other values considered empty, e.g. `null` or `false`.

Props riaanlom, laxman-prajapati, SergeyBiryukov.
Fixes #51042.
No action taken yet
git: 1911eae
svn: r48816
29 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-18 12:37:39 +0000
Docs: Correct alignment for some DocBlocks in `WP_Query::get_posts()`.
See #50768.
No action taken yet
git: 89ea6ce
svn: r48814
30 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-18 12:03:24 +0000
Docs: Add a `@since` note to `get_the_archive_title()` about the title part being wrapped in a `<span>` element.
Follow-up to [48294].

Props justinahinon, audrasjb.
Fixes #51050.
No action taken yet
git: 7d0dc26
svn: r48812
31 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-17 14:24:30 +0000
Accessibility: Toolbar: Don't output the "Skip to toolbar" link in modern themes that support the `wp_body_open` action.
The links is unnecessary there, as the toolbar is the first thing in the DOM within the `<body>` element.

For themes that don't implement the `wp_body_open` action yet and render the admin bar in the footer, the "Skip to toolbar" link with `tabindex="1"` is still necessary, to ensure it's the first focusable element in the page.

Props sarahricker, afercia, erikjandelange, audrasjb.
Fixes #50702.
No action taken yet
git: 09a3a6e
svn: r48809
32 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-17 02:10:55 +0000
Help/About: Fix typo and remove trailing spaces from some strings.
Props mukesh27, casiepa, davidbaumwald.
Fixes #51028.
No action taken yet
git: e6c2f66
svn: r48808
33 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-17 02:01:04 +0000
Site Health: Ensure that the tests returned by `WP_Site_Health::get_tests()` always have the required array keys: `direct` and `async`.
This avoids PHP notices if these keys were accidentally removed using the `site_status_tests` filter.

Props khag7, Ov3rfly, desrosj, Clorith.
Fixes #50858.
No action taken yet
git: 271ab20
svn: r48802
34 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-16 18:25:50 +0000
Site Health: Add site environment type to the debug information.
Follow-up to [47919], [48188], [48372].

Props joostdevalk, Clorith.
Fixes #50887.
No action taken yet
git: e499354
svn: r48801
35 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-16 17:52:25 +0000
Site Health: Rename the `$upload_max_size` variable to `$upload_max_filesize`, for consistency with the PHP setting name.
Follow-up to [48535], [48538], [48539], [48544], [48800].

See #50945.
No action taken yet
git: 73671e8
svn: r48800
36 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-16 17:46:51 +0000
Site Health: Only display the warning about the `post_max_size` PHP value when it's lower than `upload_max_filesize`.
Previously, the warning was displayed even if the value was higher than `upload_max_filesize`, which made the report inaccurate, as these values don't necessarily have to match.

Props oakesjosh, jeroenrotty, desrosj, Clorith.
Fixes #50945.
No action taken yet
git: a1e05cf
svn: r48799
37 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-16 14:00:27 +0000
Docs: Fix typo in the `$image` parameter description in `is_gd_image()`.
Follow-up to [48798].

See #50833.
No action taken yet
git: cbaa88c
svn: r48798
38 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-16 13:31:57 +0000
Code Modernization: Introduce `is_gd_image()` to check for PHP 8 `GdImage` object instances.
In PHP 8, the GD extension uses `GdImage` objects instead of resources for its underlying data structures.

This updates the existing `is_resource()` calls for image resources in core to accomodate for `GdImage` instances as well.

Props ayeshrajans, jrf.
Fixes #50833.
No action taken yet
git: d41ac05
svn: r48797
39 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-15 20:54:46 +0000
Filesystem API: Use correct variable when closing the file handle in `WP_Filesystem_FTPext::get_contents()`.
Props [email protected]
Fixes #51029.
No action taken yet
git: dddddc4
svn: r48796
40 of 4634
Author
Timothy Jacobs <[email protected]> 2020-08-15 16:09:56 +0000
REST API: Add uniqueItems as a permitted endpoint argument JSON Schema keyword.
Support for the `uniqueItems` keyword was added in [48357], but wasn't included in the list of permitted keywords for `WP_REST_Controller::get_endpoint_args_for_item_schema()`. This prevented the keyword from being automatically supported if specified in a controller's item schema.

Fixes #51021.
No action taken yet
git: dd071ee
svn: r48795
41 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-15 13:44:00 +0000
Menus: Make the `$object_id` parameter of `_wp_delete_post_menu_item()` required, for consistency with `_wp_delete_tax_menu_item()`.
The function is private (only intended for core usage) and is hooked to the `delete_post` action, which always passes a non-zero post ID.

Follow-up to [14295], [48794].

See #50343.
No action taken yet
git: 9c220ff
svn: r48794
42 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-15 13:38:52 +0000
Code Modernization: Fix PHP 8 deprecation notices for optional function parameters declared before required parameters.
As it already was not possible to pass the required parameters without also passing the optional one anyway, removing the default value for the (not so) optional parameters should not affect backward compatibility.

This change affects three functions in core:

* `get_comment_delimited_block_content()`
* `do_enclose()`
* `_wp_delete_tax_menu_item()`

Props jrf, ayeshrajans, desrosj.
Fixes #50343.
No action taken yet
git: b9e5fa1
svn: r48793
43 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-15 13:10:15 +0000
Docs: Document the parameters of `wp_get_associated_nav_menu_items()` as optional.
See #50768.
No action taken yet
git: 8c37860
svn: r48792
44 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-14 20:37:42 +0000
Site Health: Recognize `define( 'WP_AUTO_UPDATE_CORE', 'minor' )` as an acceptable value.
Previously, it was only incidentally recognized as valid due to a loose comparison with `true`.

With the strict comparison added to `WP_Site_Health_Auto_Updates::test_constants()`, this was no longer the case.

Follow-up to [47841].

Props sterndata, mukesh27, avixansa, desrosj, SergeyBiryukov.
Fixes #50912.
No action taken yet
git: 285d176
svn: r48791
45 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-14 16:33:24 +0000
Tests: Consistently unregister custom settings after performing assertions in `WP_Test_REST_Settings_Controller`.
This ensures that those settings don't leak to other tests.

Props david.binda, TimothyBlynJacobs, SergeyBiryukov.
Fixes #50986.
No action taken yet
git: f073360
svn: r48790
46 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-13 12:32:03 +0000
Code Modernization: Change `create_function()` in `phpunit/includes/plural-form-function.php` to closure.
`create_function()` has been deprecated in PHP >= 7.2 and removed in PHP 8.

The only instance left in core was used in a test that was being skipped on PHP >= 7.2. This allows the test to run again.

Follow-up to [41722], [41730].

Props jrf.
Fixes #50899.
No action taken yet
git: ab9aee8
svn: r48789
47 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-12 15:23:47 +0000
Code Modernization: Only call `libxml_disable_entity_loader()` in PHP < 8.
This function has been deprecated in PHP 8.0 because in libxml 2.9.0, external entity loading is disabled by default, so this function is no longer needed to protect against XXE attacks.

Props jrf.
Fixes #50898.
No action taken yet
git: 1bf0a78
svn: r48788
48 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-12 15:03:50 +0000
Code Modernization: Remove `final` keyword from private methods.
Declaring a `private` method as `final` is an oxymoron, as `private` methods cannot be overloaded anyway.

Using `final private function...` will generate a warning in PHP 8.

Props jrf.
Fixes #50897.
No action taken yet
git: 56b0961
svn: r48783
49 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-11 16:51:22 +0000
Help/About: Final adjustments to the 5.5 About page.
- Final CDN asset URLs.
- Some minor color adjustments.

Props ryelle, marybaum, davidbaumwald, audrasjb, estelaris, afercia, cbringmann, andreamiddleton, desrosj, SergeyBiryukov, ocean90, nrqsnchz, spacedmonkey, whyisjake, man4toman.
Fixes #50416.
No action taken yet
git: a84a502
svn: r48782
50 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-11 00:32:22 +0000
Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards.
See #50768.
No action taken yet
git: 635ae16
svn: r48778
51 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-10 15:48:25 +0000
Docs: Update documentation for `get_{$meta_type}_metadata` filter for consistency with `default_{$meta_type}_metadata`.
Follow-up to [48777].

See #50891.
No action taken yet
git: d434a22
svn: r48777
52 of 4634
Author
Jake Spurlock <[email protected]> 2020-08-10 15:40:18 +0000
Options, Meta APIs: Update the docs around default metadata values.
Add a missing @since value for 5.5 and potential default filter names.

Fixes #50891.
Props johnbillion.
No action taken yet
git: d8985ba
svn: r48775
53 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-10 15:30:18 +0000
Bundled Themes: Bump theme versions ahead of WordPress 5.5.
The following theme versions will be released in coordination with WordPress 5.5:
- Twenty Ten: 3.1
- Twenty Eleven: 3.5
- Twenty Twelve: 3.2
- Twenty Thirteen: 3.1
- Twenty Fourteen: 2.9
- Twenty Fifteen: 2.7
- Twenty Sixteen: 2.2
- Twenty Seventeen: 2.4
- Twenty Nineteen: 1.7
- Twenty Twenty: 1.5

Props whyisjake, desrosj.
Fixes #50769.
No action taken yet
git: f05d382
svn: r48774
54 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-10 15:17:11 +0000
Build/Test Tools: Update `elliptic` in Twenty Twenty.
See #50769.
No action taken yet
git: ab5fb85
svn: r48772
55 of 4634
Author
Ella van Durpe <[email protected]> 2020-08-10 14:16:11 +0000
Editor: update packages
Fixes #50888
No action taken yet
git: e70870b
svn: r48770
56 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-10 13:13:34 +0000
I18N: Fix typo in a screen reader text string on the About page.
Follow-up to [48729].

Props pedromendonca.
Fixes #50884.
No action taken yet
git: 82104fa
svn: r48769
57 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-10 11:32:01 +0000
I18N: Add a `class_exists()` check to `Plural_Forms` class for consistency with other POMO library classes.
Follow-up to [41722].

Fixes #50881.
No action taken yet
git: e0ad73b
svn: r48767
58 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-09 01:58:31 +0000
I18N: Fix typo in a string in `rest_validate_value_from_schema()`.
Props pedromendonca.
Fixes #50879.
No action taken yet
git: f556437
svn: r48766
59 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-09 01:54:28 +0000
Coding Standards: Remove a few more extra brackets from some conditions in `wp-admin/includes/plugin.php`.
Follow-up to [48764].

See #50767.
No action taken yet
git: f09aab7
svn: r48765
60 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-09 01:44:29 +0000
Coding Standards: Use consistent formatting for translator comments in `wp-includes/rest-api.php`.
See #50767.
No action taken yet
git: 18c0692
svn: r48764
61 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-08 21:02:18 +0000
Coding Standards: Fix WPCS issues in `wp-admin/includes/plugin.php`.
Includes minor code layout fixes for better readability.

Props rnaby for initial patch.
See #50767, #43848.
No action taken yet
git: 9eb6dd6
svn: r48762
62 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-08 20:22:34 +0000
Coding Standards: Simplify some parts of `user_can_access_admin_page()` for better readability.
Props rnaby, valentinbora, khag7.
Fixes #43848.
No action taken yet
git: fd8169e
svn: r48761
63 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-08 14:14:38 +0000
Help/About: Update videos and their descriptions on the About page.
Follow-up to [48675], [48686], [48721], [48729], [48730], [48736].

Props ryelle, marybaum, estelaris, desrosj, joen, afercia.
See #50416.
No action taken yet
git: 5602ba4
svn: r48760
64 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-08 12:37:03 +0000
Docs: Document the return value of `get_settings_errors()` using hash notation.
Props stevenlinx, webdevmattcrom, atachibana.
Fixes #42786.
No action taken yet
git: 6ebff32
svn: r48758
65 of 4634
Author
Jake Spurlock <[email protected]> 2020-08-07 20:42:04 +0000
Themes: Update the `test_theme_supports_custom_logo` to check for the `unlink-homepage-logo` property.
See #37011, [48757].
Props TimothyBlynJacobs, whyisjake.
No action taken yet
git: a5771dc
svn: r48757
66 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 19:41:16 +0000
Themes: Add `unlink-homepage-logo` to the `create_initial_theme_features()` registration for the `custom-logo` theme feature.
Follow-up to [48039], [48283], [48749].

Props TimothyBlynJacobs.
Fixes #37011.
No action taken yet
git: 5868743
svn: r48754
67 of 4634
Author
Andrew Ozz <[email protected]> 2020-08-07 18:28:36 +0000
Script Loader: Remove the `jquery-migrate-compat-5.5` temporary script handle for now. Can be re-added later if there is a compelling use case. For now it doesn't seem necessary.
See #37110.
No action taken yet
git: 910df84
svn: r48753
68 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 16:49:24 +0000
Script Loader: Add a temporary `jquery-migrate-compat-5.5` script handle.
This is intended as an easy way for plugins and themes to still be able to load jQuery with jQuery Migrate in WordPress 5.5.

Once jQuery is updated to 3.x, this temporary script handle will be removed. This means plugins and themes still using it at that point will fail to load their scripts (as a dependency will be missing), but will not cause "fatal errors" breaking the rest of JS.

Follow-up to [48323], [48324].

Props azaozz, desrosj, apedog, Clorith, jorbin.
Fixes #37110.
No action taken yet
git: 29b5835
svn: r48751
69 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 16:30:32 +0000
Comments: Update DB version number used to trigger the upgrade routine for changing the `comment_type` DB field value in comments table.
Follow-up to [47597], [47626], [48225], [48227], [48748].

Props desrosj.
See #49236.
No action taken yet
git: 8c11d50
svn: r48750
70 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 16:12:11 +0000
Docs: Correct usage of the dynamic `auto_update_{$type}` filter.
This ensures that the canonical name of the filter is used in Site Health debug data, as well as on plugin and theme screens, so the developer reference site remains correct.

Props johnbillion.
Fixes #50868.
No action taken yet
git: 54cba57
svn: r48749
71 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 15:24:10 +0000
Accessibility: Themes: Only unlink custom logo on the home page if the theme declares support for that.
To accommodate for the change, the `custom-logo` theme feature now accepts the `unlink-homepage-logo` parameter.

If and when the logo is linked on the home page, the link has the `aria-current` attribute for better accessibility.

Follow-up to [48039], [48283].

Props sabernhardt, audrasjb, johnstonphilip, demetris.
Fixes #37011.
No action taken yet
git: def2425
svn: r48748
72 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 14:27:40 +0000
Comments: Update comment cache in the upgrade routine for changing the `comment_type` DB field value in comments table.
This ensures that comment object cache is cleared after changing the comment type to `comment` instead of an empty string.

Add a unit test for `_wp_batch_update_comment_type()`.

Follow-up to [47597], [47626], [48225], [48227].

Props imath, westonruter.
Fixes #49236.
No action taken yet
git: 9d1a31c
svn: r48745
73 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-07 13:26:11 +0000
Site Health: Consistently pass an object to the `auto_update_{$type}` filter in Site Health debug data.
Previously, some instances of the filter received an array from a plugin or theme update response, potentially triggering PHP notices.

Props bpayton, pbiron.
Fixes #50852.
No action taken yet
git: 58f9000
svn: r48744
74 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-06 13:26:06 +0000
Tests: Correct duplicate array keys in `Tests_Kses::test_wp_filter_post_kses_address()`.
Previously, only the last `style` value was actually tested.

Props ediamin.
Fixes #50860.
No action taken yet
git: 103d7d1
svn: r48743
75 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-06 13:12:03 +0000
Posts, Post Types: Use a consistent wording in messages about a locked post.
Props ramiy.
Fixes #50859.
No action taken yet
git: f840046
svn: r48742
76 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-06 00:23:13 +0000
Site Health: Check if `session_status()` exists before calling it.
Props bgermann.
Fixes #50862.
No action taken yet
git: 55d7373
svn: r48741
77 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-05 13:52:01 +0000
Comments: Remove a few more unnecessary instances of `esc_html()` in `WP_Comments_List_Table::comment_status_dropdown()`.
Core translations are considered safe, and these labels are not escaped in any other instances.

Follow-up to [48521], [48722], [48724].

See #40188, #50815.
No action taken yet
git: 581a636
svn: r48736
78 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 18:09:37 +0000
Help/About: Correct header spacing on shorter screens after removing the musician name.
Remove some unnecessary CSS.

Follow-up to [48730].

Props ryelle.
See #50416.
No action taken yet
git: 7523796
svn: r48734
79 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 17:52:36 +0000
Plugins: Move the "Successfully installed the plugin" string to the correct `Plugin_Upgrader` method.
The string refers to the installation, and belongs in the `::install_strings()` method, not in `::upgrade_strings()`.

Props sswebster, nateinaction, SergeyBiryukov.
Fixes #50837.
No action taken yet
git: 3fb50ac
svn: r48731
80 of 4634
Author
Jake Spurlock <[email protected]> 2020-08-04 17:35:09 +0000
Site Health: Display auto-update properly for plugins that don't support auto-updates.
Properly filter `auto_update_plugin` when displaying the table.

Fixes #50822.
Props Gwendydd, pbiron, audrasjb, SergeyBiryukov, whyisjake.
No action taken yet
git: d11bac5
svn: r48730
81 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-04 17:33:38 +0000
Help/About: Remove “Musician Name” placeholder.
The musician name is traditionally not included on the About page due to i18n concerns regarding last minute changes.

Props audrasjb, SergeyBiryukov.
See #50416.
No action taken yet
git: 926cbb5
svn: r48729
82 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-08-04 17:24:35 +0000
Help/About: String updates and accessibility improvements to the 5.5 About page.
Props ryelle, nrqsnchz, desrosj, audrasjb, marybaum, spacedmonkey, SergeyBiryukov, estelaris, afercia, ocean90.
See #50416.
No action taken yet
git: 68d1605
svn: r48726
83 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 16:59:03 +0000
Editor: Make some hardcoded strings in block patterns translatable.
Props ocean90, youknowriad.
Fixes #50842.
No action taken yet
git: 005504c
svn: r48725
84 of 4634
Author
ellatrix <[email protected]> 2020-08-04 16:46:02 +0000
Editor: update JS packages
Fixes #50844.
No action taken yet
git: a362852
svn: r48724
85 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 16:24:32 +0000
Comments: Restore the `::has_items()` call in `WP_Comments_List_Table::extra_tablenav()` for now, until unit tests are updated accordingly.
Follow-up to [48722].

Fixes #40188. See #50815.
No action taken yet
git: 21c0ed0
svn: r48722
86 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 15:55:25 +0000
Comments: Use the existing static variable instead of calling `::has_items()` again in `WP_Comments_List_Table::extra_tablenav()`.
Additionally, removed unnecessary `esc_html()` on the Filter button label. Core translations are considered safe, and this label is not escaped in any other instance.

Props whyisjake, SergeyBiryukov.
Fixes #40188.
No action taken yet
git: 39be04b
svn: r48721
87 of 4634
Author
Jake Spurlock <[email protected]> 2020-08-04 15:54:48 +0000
Help/About: String update for 5.5 release.
We don't use hyphens for the [block editor](https://make.wordpress.org/core/handbook/best-practices/spelling/).

See #50416.
Props davidbaumwald, marybaum, desrosj.
No action taken yet
git: 3bee993
svn: r48719
88 of 4634
Author
Ella van Durpe <[email protected]> 2020-08-04 13:41:37 +0000
Editor: update JS packages
Fixes #50841.
No action taken yet
git: 48837a3
svn: r48717
89 of 4634
Author
Andrea Fercia <[email protected]> 2020-08-04 13:15:52 +0000
Accessibility: Administration: Address backward compatibility concerns for the sortable postboxes areas after [48340].
Fixes #49288.
No action taken yet
git: 42dc935
svn: r48716
90 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-04 12:45:57 +0000
Media: Remove extra space from the `width` attribute in `wp_playlist_shortcode()` output.
Props hvar.
Fixes #50840.
No action taken yet
git: 59ed4cb
svn: r48715
91 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-03 12:51:22 +0000
Administration: Allow `wp_credits()` to accept `$version` and `$locale` parameters.
This can be helpful for plugin developers to get credits information for older versions or different locales.

Props ramiy.
Fixes #35910.
No action taken yet
git: 35a4b7b
svn: r48714
92 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-03 12:09:34 +0000
Docs: Correct placement for `wp_editor_expand` filter DocBlock.
See #50768.
No action taken yet
git: a5cb12d
svn: r48713
93 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-02 12:55:56 +0000
Permalinks: Don't show "You should update your `.htaccess` file now" message when saving permalink settings on Multisite.
Multisite routing is taken care of by WordPress, not by the web server.

Follow-up to [13706], [37747], [38066].

Props boonebgorges.
Fixes #39547.
No action taken yet
git: b79a8c6
svn: r48712
94 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-02 12:49:08 +0000
Permalinks: Simplify the logic for displaying "You should update your `.htaccess` file now" message.
See #39547, #50834.
No action taken yet
git: 2c5ef0f
svn: r48711
95 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-02 12:37:08 +0000
Docs: Correct formatting for a comment in `wp-admin/options-permalink.php`.
Previously committed in [48694], accidentally reverted in [48710].

See #50768.
No action taken yet
git: 7bc790c
svn: r48710
96 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-02 12:34:05 +0000
Permalinks: Correct the check whether `.htaccess` update is required when saving permalink settings.
The check should be performed after the permalink structure update, not before.

Fixes #50834.
No action taken yet
git: c77373e
svn: r48709
97 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-01 19:44:09 +0000
Upgrade/Install: Show the installed WordPress version number on WordPress Updates screen if there is a newer version available.
This makes it easier for a user to know how significant of an update the change might be, and helps them make an informed decision about how to proceed.

Props tmdesigned, dd32, circlecube, dkarfa, hakre, scribu, MadtownLems, markshep, nbachiyski, dmchale, miqrogroove, ovann86, danieltj, sterndata, seanpaulrasmussen, mrgrt, Commeuneimage, dpacks, puneetsahalot, jonoaldersonwp, SergeyBiryukov.
Fixes #15101. See #35554, #47848.
No action taken yet
git: ac278ca
svn: r48707
98 of 4634
Author
Sergey Biryukov <[email protected]> 2020-08-01 14:07:29 +0000
HTTP: Update the Root Certificate bundle.
Keep 1024-bit legacy root certificates re-added in [35919], except for those already expired, for compatibility with older OpenSSL versions.

Props barry, ayeshrajans, desrosj, whyisjake.
See #50828.
No action taken yet
git: d3edd66
svn: r48705
99 of 4634
Author
Aaron Jorbin <[email protected]> 2020-07-31 18:33:23 +0000
Build/Test Tools: Update grunt-patch-wordpress
See: #50769
No action taken yet
git: 96b409c
svn: r48703
100 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-31 17:19:34 +0000
Upgrade/Install: Ensure the proper count of plugins that have auto-update enabled.
As certain plugins may not support updates, this count needs to accurately reflect that in the navbar.

Fixes 50808.
Props knutsp, audrasjb, pbiron, dd32, apedog, afragen, chriscct7, garyc40, whyisjake, SergeyBiryukov.
No action taken yet
git: d83942a
svn: r48701
101 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-31 17:01:16 +0000
Upgrade/Install: Allow for WordPress.org to remotely disable auto-updates for plugins/themes
As auto-updates are rolled out across WordPress.org, the API response can modulate the response, ensuring that a rolled out could be stalled or staggered if needed for security or performance reasons.

Fixes #50824.
Props dd32, whyisjake, SergeyBiryukov.
No action taken yet
git: bfc5c53
svn: r48700
102 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-31 13:58:09 +0000
Editor: Correctly back up the global `$post` in `wp-admin/edit-form-blocks.php`.
To create a copy of the object, instead of a reference to the same object, the `clone` keyword should be used.

Props scarolan.
Fixes #50775.
No action taken yet
git: e95d645
svn: r48699
103 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-31 13:13:36 +0000
Widgets: Use correct escaping function in `WP_Widget_Archives::widget()`.
Props chintan1896, afercia.
See #50826.
No action taken yet
git: 6d3207d
svn: r48696
104 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-30 21:48:19 +0000
Upgrade/Install: Pass the plugin file path into the `plugin_auto_update_debug_string` filter.
Adds better tooling for when user specific plugins can be updated, but platform specific ones cannot.

Fixes #50821.
Props bpayton, pbiron, audrasjb, SergeyBiryukov, whyisjake.
No action taken yet
git: 1c6ca09
svn: r48695
105 of 4634
Author
John Blackbourn <[email protected]> 2020-07-30 19:12:02 +0000
Docs: Various fixes and improvements to inline documentation.
See #49572
No action taken yet
git: 2ec18b9
svn: r48694
106 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-30 14:00:59 +0000
Docs: Correct formatting for a comment in `wp-admin/options-permalink.php`.
See #50768.
No action taken yet
git: a7e5570
svn: r48693
107 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-30 13:25:10 +0000
Comments: Pass the `$which` parameter to the `manage_comments_nav` action.
This brings some consistency with the  `manage_users_extra_tablenav` and `manage_users_extra_tablenav` actions.

Props Tkama, wpgurudev.
Fixes #50736.
No action taken yet
git: bee24dc
svn: r48692
108 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-30 12:26:45 +0000
I18N: Use a placeholder instead of the `\` character in a translatable string in `WP_REST_Users_Controller::check_user_password()`.
Props ramiy.
Fixes #50812.
No action taken yet
git: e53aaae
svn: r48689
109 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-29 21:06:47 +0000
Themes: Pass correct variable to `is_php_version_compatible()` in `wp_theme_update_row()`.
This applies to the Themes screen in Multisite network admin.

Follow-up to [48660].

Props pbiron, afragen.
Fixes #48507. See #48491.
No action taken yet
git: 20ac5dd
svn: r48688
110 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-29 19:59:30 +0000
Upgrade/Install: Only show auto-update for themes that support the feature.
Similar to the changes for plugins in [48669], let's only show the UI for themes when updates are supported for that theme.

See #50280.
Props dd32.
No action taken yet
git: a492724
svn: r48686
111 of 4634
Author
SergeyBiryukov <[email protected]> 2020-07-29 13:27:02 +0000
Help/About: Adjust two strings on the About page for better i18n.
Follow-up to [48675].

Props ocean90, audrasjb, kittmedia, nao.
See #50416.
No action taken yet
git: c1101f0
svn: r48685
112 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-29 13:07:35 +0000
Upgrade/Install: Pass correct argument to `clear_destination` in `Theme_Upgrader::install()`.
Follow-up to [48390].

Props afragen, sabernhardt.
Fixes #9757.
No action taken yet
git: 014b40e
svn: r48684
113 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 21:19:53 +0000
Media: Pass the `$rel` parameter to `image_send_to_editor` filter.
Props mihdan, pputzer.
Fixes #50765.
No action taken yet
git: 7aae3c7
svn: r48683
114 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 20:54:37 +0000
Trunk is now 5.6 alpha.
No action taken yet
git: ed82e57
svn: r48681
115 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 19:13:41 +0000
Post WordPress 5.5 RC 1 version bump.
No action taken yet
git: 14e896d
svn: r48680
116 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 18:52:06 +0000
WordPress 5.5 RC 1.
No action taken yet
git: ce675c0
svn: r48679
117 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 18:48:51 +0000
WordPress 5.5 RC 1.
No action taken yet
git: 355152a
svn: r48678
118 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 18:26:58 +0000
Upgrade/Install: Swap `auto-update-supported` to `update-supported` in update checks.
Ensures backwards compatability with external updaters.

See #50280.
Props everyone-in-the-core-updates-channel.
No action taken yet
git: 0848bbf
svn: r48677
119 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-28 18:14:03 +0000
Upgrade/Install: Clarify the descriptions for `install_(plugin|theme)_overwrite_actions`.
See #9757.
No action taken yet
git: b60cf9c
svn: r48676
120 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-28 17:54:52 +0000
Upgrade/Install: Correct spelling of “overwrite” in new hooks and array indexes.
See #9757.
No action taken yet
git: 29b8823
svn: r48675
121 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 17:43:50 +0000
Help/About: WordPress 5.5 About Page.
Speed. Search. Security.

This is the start of the WordPress 5.5 about page. 

Fixes #50416. 
Props ryelle, marybaum, estelaris, yvettesonneveld, michelebutcher-jones, metalandcoffee, melchoyce, marktimemedia, abhanonstopnewsuk, elmastudio, davidbaumwald, audrasjb, afercia, cbringmann, andreamiddleton, desrosj, earnjam, SergeyBiryukov, whyisjake, elrae.
No action taken yet
git: 57f9a2c
svn: r48674
122 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 17:42:44 +0000
Login and Registration: Correct the logic for determining the path to `wp-login.php` in `wp_lostpassword_url()`.
Follow-up to [48672], [48673].

See #39311.
No action taken yet
git: d1ef380
svn: r48673
123 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 17:38:37 +0000
Login and Registration: Only call `get_blog_details()` in `wp_lostpassword_url()` on Multisite.
The function does not exist on single site.

Follow-up to [48672].

See #39311.
No action taken yet
git: 087d112
svn: r48672
124 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 17:18:06 +0000
Login and Registration: Link to the correct site after activating a user on a Multisite install in subdirectory mode.
Props pkarjala, Mista-Flo, tmoore41, Ipstenu, ksoares, mukesh27, whyisjake.
Fixes #39311.
No action taken yet
git: 0dd3bd3
svn: r48671
125 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 17:06:52 +0000
Administration: Correct alignment of the "PHP Update Required" dashboard box title.
Restore one instance of `!important` CSS rule for backward compatibility.

Follow-up to [48129], [48373].

Props whyisjake, sabernhardt, TimothyBlynJacobs, SergeyBiryukov.
Fixes #50788.
No action taken yet
git: d3614d4
svn: r48670
126 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 16:53:03 +0000
Administration: Don't override the `$mode` global in `WP_Screen::render_view_mode()` if it's already set.
Follow-up to [48398], [48423], [48424], [48450].

See #49715.
No action taken yet
git: af4127a
svn: r48669
127 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 16:30:48 +0000
Upgrade/Install: Enhance auto-updates to be disabled for plugins that don't suport updates.
This removes the toggle UI when updates aren't available. When plugins use the filter, the UI is updated to show that they are being controlled via code. And then removed entirely when not available.

See #50798.
Fixes #50280.

Props elrae, pbiron, SergeyBiryukov, audrasjb, azaozz, StephenCronin, whyisjake, dd32, TimothyBlynJacobs, desrosj.
No action taken yet
git: 828d287
svn: r48668
128 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 16:17:13 +0000
Administration: Pull the `table_view_mode` filter for now.
The extensibility of list table view modes will be explored in a future release.

Props audrasjb.
See #49715.
No action taken yet
git: 18f5561
svn: r48667
129 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 16:13:03 +0000
Upgrade/Install: Disable the plugin/theme auto-updates UI if `AUTOMATIC_UPDATER_DISABLED` is defined and set as `true`.
Props pbiron, dd32.
Fixes #50798. See #50280.
No action taken yet
git: 9636a9d
svn: r48666
130 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 16:05:39 +0000
Upgrade/Install: Check WordPress and PHP version requirements when uploading a plugin or theme from ZIP file.
Props mariovalney, desrosj.
See #50593.
No action taken yet
git: cded42a
svn: r48665
131 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 15:40:35 +0000
Taxonomy: Rename the `default_taxonomy_$taxonomy` option key to `default_term_$taxonomy`.
This better reflects the purpose of the option.

Follow-up to [48356], [48480].

See #43517.
No action taken yet
git: 2547c15
svn: r48664
132 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 14:40:06 +0000
Coding Standards: Reformat a condifion for default taxonomy terms in `map_meta_cap()` for better readability.
Follow-up to [48356], [48480].

See #43517.
No action taken yet
git: 6e66f08
svn: r48663
133 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 14:21:54 +0000
Taxonomy: Ensure the `child_of` argument of `get_terms()` works as expected with `'fields' => 'id=>name'` or `'id=>slug'`.
Props Howdy_McGee, deepaklalwani, planvova.
Fixes #46768.
No action taken yet
git: faa6036
svn: r48662
134 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 12:08:41 +0000
Bootstrap/Load: Remove the `wp_environment_type` and `wp_get_environment_type` filters.
Since `wp_get_environment_type()` runs too early for plugins to hook these filters, and the result is then cached in a static variable and cannot be changed later, the filters are not that useful.

The `WP_ENVIRONMENT_TYPES` and `WP_ENVIRONMENT_TYPE` constants and environment variables should be enough for now.

Follow-up to [47919], [48188], [48372].

Props Clorith, SergeyBiryukov.
Fixes #33161.
No action taken yet
git: ae65f09
svn: r48661
135 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 11:55:19 +0000
Docs: Add missing documentation for various upgrade/install class properties and methods.
Props ramiy.
Fixes #42923.
No action taken yet
git: deb78bd
svn: r48660
136 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 11:32:53 +0000
Themes: Display a message on Themes list table if a theme update requires a higher version of PHP or WordPress.
This applies to the Themes screen in Multisite network admin.

Props afragen, SergeyBiryukov.
Fixes #48507. See #48491.
No action taken yet
git: d67c469
svn: r48659
137 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 11:29:28 +0000
Themes: Include theme name in available update messages, for better accessibility and consistency with other similar messages.
Follow-up to [48652-48654].

See #48491.
No action taken yet
git: b7a5c75
svn: r48658
138 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 10:13:50 +0000
Docs: Document that various metadata functions return false for an invalid ID.
Props salcode.
See #40519.
No action taken yet
git: 81c39e9
svn: r48657
139 of 4634
Author
Mike Schroder <[email protected]> 2020-07-28 08:07:04 +0000
Upgrade/Install: Improve `wp_opcache_invalidate()` performance.
Changes from using `preg_match()` based `.php` extension checking to using `substr()` in `wp_opcache_invalidate()`.

Props jnylen0, aaroncampbell, SergeyBiryukov, desrosj, mikeschroder.
Fixes #50784.
No action taken yet
git: b29101a
svn: r48656
140 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-28 04:08:56 +0000
REST API: Remove assets field from block directory controller.
Gutenberg no longer uses the assets field to fetch the assets for the installed block so this field can be dropped from the endpoint. This allows us to reintroduce it at a later point without needing to worry about backward compatibility.

See #50732.
No action taken yet
git: 5bb5053
svn: r48655
141 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-28 02:19:17 +0000
Site Health: Incorrect file path in `require_once`.
Ensure that background updater can be loaded for testing to see if auto-updates can enable automatic updates.

Fixes #50793.
Props dd32.
No action taken yet
git: 6f79ff4
svn: r48654
142 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 01:00:40 +0000
Themes: Display a message in theme updates list if an update requires a higher version of PHP or WordPress.
This applies to the WordPress Updates screen.

Props afragen, SergeyBiryukov.
Fixes #48491.
No action taken yet
git: d29535c
svn: r48653
143 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 00:41:56 +0000
Themes: Correct the logic for displaying a message in theme grid if a theme update requires a higher version of PHP or WordPress.
This applies to the Themes screen fallback used when JS is turned off.

Follow-up to [48652].

See #48491.
No action taken yet
git: 7ea44b5
svn: r48652
144 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 00:08:00 +0000
Themes: Display a message in theme grid and Theme Details modal if a theme update requires a higher version of PHP or WordPress.
This applies to the Themes screen and the Customizer theme browser.

Props afragen, SergeyBiryukov.
See #48491.
No action taken yet
git: 72dfc46
svn: r48651
145 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-28 00:05:59 +0000
Docs: Correct alignment for some parameters in JS documentation.
Follow-up to [48650].

See #43828.
No action taken yet
git: 9ed92fa
svn: r48650
146 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-27 23:33:51 +0000
Build/Test Tools: Enable JSDocs to be linted with ESLint.
As part of the [Javascript Inline Docs Initiative](https://make.wordpress.org/core/handbook/docs/inline/js/) this add some tooling to lint Javascript docblocks. Two new commands:

* `npm run lint:jsdoc`
* `npm run lint:jsdoc:fix`

The latter will run the linter and try to fix an possible issues automatically.

Fixes #43828.
Props netweb, atimmer, kamataryo, whyisjake.
No action taken yet
git: a1a1173
svn: r48649
147 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 21:47:18 +0000
Docs: Correct description for `wp_filter_content_tags()` per the documentation standards.
DocBlocks should start with a brief, one sentence explanation of the purpose of the function spanning a maximum of two lines.

Follow-up to [48648].

See #44427.
No action taken yet
git: 3e1083a
svn: r48648
148 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-27 21:04:34 +0000
Media: Improve inline docs for `wp_filter_content_tags()`.
Props johnstonphilip.
See #44427.
No action taken yet
git: c230d7a
svn: r48647
149 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-27 20:59:03 +0000
Post WordPress 5.5 Beta 4 version bump.
No action taken yet
git: 9252165
svn: r48646
150 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-27 20:38:25 +0000
WordPress 5.5 Beta 4.
No action taken yet
git: 8c9b33c
svn: r48645
151 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-27 20:17:36 +0000
Mail: PHPMailer swap to use is_email for the default validator.
Prior to the PHPMailer update in 5.5, old version of the PHPMailer was setting the validator to 'auto' resulting in a sophisticated logic for determining what email address validation should be used. But the new version defaults to 'php', possibly leading to rejection of email addresses which were fine prior to the upgrade. Let's use the WordPress core function `is_email()` so that it can be fully pluggable.

Fixes #50720.
Props david.binda, ayeshrajans, Synchro, SergeyBiryukov, whyisjake.
No action taken yet
git: e03be98
svn: r48644
152 of 4634
Author
Riad Benguella <[email protected]> 2020-07-27 20:08:53 +0000
Block Editor: Updated WordPress Packages for 5.5 beta 4
Updated packages:

 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]

Fixes #50791.
No action taken yet
git: f660784
svn: r48643
153 of 4634
Author
Riad Benguella <[email protected]> 2020-07-27 19:15:55 +0000
Administration: Fix the red links on the Media Modal.
The custom link colors for admin scheme colors were overriding the danger color.

Props kebbet, dlh.
Fixes #50547.
No action taken yet
git: 5149a7e
svn: r48642
154 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-27 18:44:14 +0000
REST API: Fix warning when using `set_param()` on a JSON request with no body.
In [47559] the `WP_REST_Request::set_param()` method was adjusted to try and overwrite an existing parameter definition before forcing the value in the first parameter slot. If `set_param()` was called on a request with an `application/json` content type and an empty body, a PHP warning would be issued. This was due to the JSON parameter type not being set to an array when the body is empty.

This commit avoids the warning by adding an `is_array()` check before calling `array_key_exists`. Ideally, `WP_REST_Reuest::parse_json_params()` would set the JSON parameter type to an empty array in this case, but that is too large of a change at this point in the cycle.

Props manooweb.
Fixes #50786.
No action taken yet
git: beba4bb
svn: r48641
155 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-27 18:29:43 +0000
REST API: Install plugin translations after the plugin install. This only installs for the plugin in question, not all plugins.
Support for retrieving the langauge pack alongside the install API request was added in https://meta.trac.wordpress.org/changeset/10091 to avoid having to make a plugin update check during the REST API check.

Fixes #50732.
Props dd32, ocean90, ryelle, swissspidy, tellyworth, whyisjake, TimothyBlynJacobs.
No action taken yet
git: 598a5a5
svn: r48640
156 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 15:19:09 +0000
Themes: Display a message in theme grid if a theme requires a higher version of PHP or WordPress.
This applies to the Themes screen fallback used when JS is turned off.

Props afragen, desrosj, SergeyBiryukov.
See #48491.
No action taken yet
git: 6475d32
svn: r48639
157 of 4634
Author
Riad Benguella <[email protected]> 2020-07-27 15:12:13 +0000
Block Editor: Update the Core Block Patterns.
Backport the latest block patterns from the Gutenberg plugin.
The new patterns adapt properly to Core themes.

Props nrqsnchz.
Fixes #50550, #50594.
No action taken yet
git: 782454b
svn: r48638
158 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 15:02:19 +0000
Themes: Display a message in theme grid if a theme requires a higher version of PHP or WordPress.
This applies to the Themes screen, Add Themes screen, and the Customizer theme browser.

Props afragen, desrosj, SergeyBiryukov.
See #48491.
No action taken yet
git: 332ce58
svn: r48637
159 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 14:24:19 +0000
Themes: Display a message in Details & Preview modal on Add Themes screen if a theme requires a higher version of PHP or WordPress.
Props afragen, desrosj, SergeyBiryukov.
See #48491.
No action taken yet
git: 3b0b11a
svn: r48636
160 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 13:10:04 +0000
Themes: Display a message in Theme Details modal if a theme requires a higher version of PHP or WordPress.
Props afragen, desrosj, SergeyBiryukov.
See #48491.
No action taken yet
git: 38cf369
svn: r48635
161 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 11:36:27 +0000
Posts, Post Types: Pass correct variable to the `get_lastpostdate` filter.
Follow-up to [48634].

See #49572.
No action taken yet
git: 382834e
svn: r48634
162 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 11:15:44 +0000
Docs: Synchronize documentation for `get_lastpostdate()` and `get_lastpostmodified()`.
See #49572.
No action taken yet
git: fc62131
svn: r48633
163 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 11:15:04 +0000
Tests: Add more fixtures to `get_lastpostdate()` and `get_lastpostmodified()` tests.
Follow-up to [48631].

Props munyagu.
See #47777.
No action taken yet
git: 838f988
svn: r48632
164 of 4634
Author
Mike Schroder <[email protected]> 2020-07-27 09:06:58 +0000
Docs: Correct `wp_opcache_invalidate_file` filter docs.
Changes incorrectly named `$filename` variable to `$filepath` and adjusts wording to align with PHP docs.

See #36455.
No action taken yet
git: 581deff
svn: r48631
165 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-27 02:16:46 +0000
Posts, Post Types: Pass the post type to `get_lastpostdate()` in `get_lastpostmodified()`.
This ensures that the correct values are being compared when retrieving the result for custom post types.

Additionally, pass the `$post_type` parameter to `get_lastpostdate` and `get_lastpostmodified` filters.

Props mikaumoto, munyagu, donmhico, johnbillion, SergeyBiryukov.
Fixes #47777.
No action taken yet
git: a1c40b3
svn: r48630
166 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 22:43:47 +0000
Docs: Improve documentation for `WP_Http::processHeaders()`.
Document the `@return` value using hash notation.

Props marekdedic, valchovski, davidbaumwald, deepaklalwani, thimalw, SergeyBiryukov.
Fixes #48350.
No action taken yet
git: 10563ae
svn: r48629
167 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 22:15:20 +0000
Docs: Add a note that the `$args` parameter of `register_block_type()` accepts any public property of `WP_Block_Type`.
Follow-up to [47754].

Props ediamin.
See #48640.
No action taken yet
git: 01d5894
svn: r48628
168 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 21:52:41 +0000
REST API: Use a consistent description for the `textdomain` schema property between plugins and themes controllers.
Follow-up to [48242], [48627].

Props audrasjb.
Fixes #50776. See #50321.
No action taken yet
git: 40dd42c
svn: r48627
169 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 21:47:56 +0000
REST API: Use a consistent name for the `textdomain` schema property between plugins, themes, and block directory controllers.
Follow-up to [48242].

See #50321, #50776.
No action taken yet
git: dbb88ef
svn: r48626
170 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 21:40:43 +0000
Docs: Correct `@since` version for `WP_REST_Plugins_Controller::get_item_schema()`.
Follow-up to [48242].

See #50321.
No action taken yet
git: 0dd00ba
svn: r48625
171 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 21:24:00 +0000
Revisions: Ensure the global `$post` remains the same after revision is restored.
Because `wp_insert_post()` and `wp_transition_post_status()` are called during the process, plugins can unexpectedly modify `$post`.

Props markparnell, tofandel, archon810, SergeyBiryukov.
Fixes #46671.
No action taken yet
git: 5c064bb
svn: r48624
172 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 20:41:13 +0000
Docs: Synchronize some comments in `wp-admin/revision.php`.
See #49572.
No action taken yet
git: 565de17
svn: r48623
173 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 17:16:32 +0000
Docs: Improve documentation for various category functions.
Props atachibana.
Fixes #48394.
No action taken yet
git: 5ca5435
svn: r48622
174 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 16:05:39 +0000
Coding Standards: Rename the `$id` parameter in various category functions for clarity.
See #49542.
No action taken yet
git: 6fa3286
svn: r48621
175 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 14:06:03 +0000
Pings/Trackbacks: Avoid a PHP notice in `do_enclose()` when encountering a URL without a path in post content.
Props jbouganim, mukesh27, Otto42, SergeyBiryukov.
Fixes #49872.
No action taken yet
git: 5006831
svn: r48620
176 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 10:49:07 +0000
Posts, Post Types: Move `get_post_states()` back to the admin for now, require the file in `WP_Customize_Nav_Menus::customize_register()` instead.
This provides a minor performance improvement by only running the function in contexts where it's needed.

Follow-up to [47211], [47213], [47763], [48619].

See #46829, #49374.
No action taken yet
git: 9950b36
svn: r48619
177 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-26 01:12:51 +0000
Posts, Post Types: Make `get_post_states()` available on frontend.
This allows special pages to be denoted as such when editing a menu in the Customizer.

This applies to the Front Page, Posts Page, and Privacy Policy Page.

Follow-up to [47211], [47213], [47763].

Props dlh, whyisjake, SergeyBiryukov.
Fixes #46829. See #49374.
No action taken yet
git: 1175600
svn: r48618
178 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 21:30:32 +0000
I18N: Merge duplicate "List view" and "Grid view" strings.
Props ramiy.
Fixes #50757.
No action taken yet
git: f6b24a0
svn: r48617
179 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 19:38:34 +0000
Docs: Add a reference to `WP_Customize_Partial::__construct()` for information on accepted arguments in `WP_Customize_Selective_Refresh::add_partial()`.
Synchronize the documentation between two places, use `WP_Customize_Partial::__construct()` as the canonical source.

Props marekdedic.
See #49572.
No action taken yet
git: 4acb5a7
svn: r48616
180 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 19:12:15 +0000
Docs: Correct `@see` references for privacy hooks:
* `wp_privacy_personal_data_export_page`
* `wp_privacy_personal_data_erasure_page`

Hooks should be single-quoted when referenced.

Props pbiron, coffee2code.
See #49572, #meta5318.
No action taken yet
git: fd68c17
svn: r48615
181 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 18:53:29 +0000
Docs: Correct `@since` tags for some `WP_List_Table` hooks:
* `views_{$this->screen->id}`
* `bulk_actions-{$this->screen->id}`
* `manage_{$this->screen->id}_sortable_columns`

Follow-up to [15491], [15578], [26401].

See #49572.
No action taken yet
git: c6e0b57
svn: r48614
182 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 18:11:20 +0000
Docs: Remove outdated statement in `bulk_actions-{$this->screen->id}` filter description.
As of WordPress 4.7, developers can register their own bulk actions on list table screens.

Follow-up to [17297], [38647].

Props joyously, pbiron.
See #49572.
No action taken yet
git: 9fadf9f
svn: r48613
183 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 16:39:59 +0000
I18N: Remove `<code>` tags in an error message in `WP_REST_Posts_Controller::get_item_schema()` for consistency with other strings.
Follow-up to [48610].

See #50759.
No action taken yet
git: 160b99b
svn: r48612
184 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 16:37:34 +0000
I18N: Remove `<code>` tags in `invalid_rest_prepare_callback` error message in `register_theme_feature()` for consistency with other strings.
Follow-up to [48611].

See #50758.
No action taken yet
git: 34872f1
svn: r48611
185 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 16:29:29 +0000
I18N: Move code out of a translatable string in `register_theme_feature()`.
Props ramiy.
Fixes #50758.
No action taken yet
git: 5edc4e9
svn: r48610
186 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 16:26:44 +0000
I18N: Move code out of a translatable string in `WP_REST_Posts_Controller::get_item_schema()`.
Props ramiy.
Fixes #50759.
No action taken yet
git: 56c30a4
svn: r48609
187 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 15:59:01 +0000
I18N: Move code out of a translatable string in `WP_Customize_Manager::customize_preview_init()`.
Props ramiy.
Fixes #50760.
No action taken yet
git: 8310c5e
svn: r48608
188 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 15:36:07 +0000
Site Health: Escape the displayed result of the request in REST API availability test.
Props siliconforks, gisselfeldt.
Fixes #50588.
No action taken yet
git: 093147e
svn: r48607
189 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 15:24:21 +0000
I18N: Respect the passed `text_direction` argument in `wp_die()`.
Previously, the passed value was only used as a fallback if `get_language_attributes()` is not yet available.

Props apedog.
Fixes #49060.
No action taken yet
git: c8bb1f5
svn: r48606
190 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-25 12:29:13 +0000
Docs: Improve description for `wp_unique_filename()`.
Props stevenlinx.
Fixes #50762.
No action taken yet
git: 3127db3
svn: r48605
191 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 18:30:55 +0000
Bundled Themes: Rebuild Twenty Nineteen’s RTL stylesheet.
This adds the changes from [48073] to the `style-rtl.css` file.

Previously committed in [48514], accidentally reverted in [48602].

See #45912, #49843.
No action taken yet
git: 674e7a2
svn: r48604
192 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 18:17:49 +0000
Tests: Update `wp_unique_filename()` unit tests to account for `sanitize_file_name()` removing accents.
Follow-up to [48603].

See #22363.
No action taken yet
git: c7783dc
svn: r48603
193 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 18:01:48 +0000
Media: Remove accents in `sanitize_file_name()`.
This brings some consistency with `sanitize_title()` and `sanitize_user()`.

Props tar.gz, NumidWasNotAvailable, juliobox, p_enrique, cristovaov, zodiac1978, mikeschroder, markoheijnen, chriscct7, swissspidy, DrProtocols, pento, gitlost, joemcgill, dustinbolton, programmin, Vayu, MaximeCulea, lucasbustamante, nilovelez, RavanH, audrasjb, SergeyBiryukov.
See #22363.
No action taken yet
git: 2f98829
svn: r48602
194 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-24 17:46:20 +0000
Bundled Theme: Ensure parity between the block editor and the front-end in twentynineteen.
Alignments and blocks were not always appearing as they should in the admin.

- Wide alignments sometimes appear only as wide as the text column.
- Full and wide appear centered on the text column
- Full-width blocks sometimes do not take up the full width of the page, and other times they cause a horizontal scroll.
- Wide and full group block children take up the full width of the block by default.

Fixes #49843.
Props kjellr, Joen, poena.
No action taken yet
git: 7504898
svn: r48601
195 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-24 17:38:27 +0000
Mail: Ensure that a server hostname can be set by using `network_home_url()`.
Due to the varying server setups, `$_SERVER['SERVER_NAME'];` can't reliably ensure that there will be a relevant host that could be used as the hostname in an email. Since the `network_home_url()` is set at this point, and is filterable, this should better enable emails to be sent from the server.

Fixes #25239.
Props layotte, SergeyBiryukov, nacin, sreedoap, szepe.viktor, jesin, kitchin, mensmaximus, mt8.biz, Grzegorz.Janoszka, cbutlerjr, dd32, BjornW, neodjandre, BjornW, Ipstenu, ocean90, danielbachhuber, desmith, joemcgill, jdgrimes, riasat, derekakelly, swissspidy, lilmike, tsimmons, robert.peake, DavidAnderson, cloudstek, pigdog234, BjornW, rawrly, pessoft, RedSand, seayou, dvershinin, bastho, chesio, Starbuck, afragen, ocean90, whyisjake.
No action taken yet
git: 9bd4234
svn: r48600
196 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 12:17:54 +0000
Docs: Correct documentation for `wp_insert_term()`.
The function is used for adding a new term, not updating an existing one.

Props audrasjb, bmartinent.
Fixes #50753.
No action taken yet
git: fc1e77f
svn: r48599
197 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 12:02:47 +0000
Docs: Correct some documentation for `wp_update_term()`.
See #49572.
No action taken yet
git: 6b24e35
svn: r48598
198 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 01:19:03 +0000
Docs: Add a mention of `core-block-patterns` as a possible value for `add_theme_support()`.
Follow-up to [48492].

See #50669.
No action taken yet
git: 53657ff
svn: r48597
199 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 01:09:07 +0000
Docs: Improve documentation for `wp_list_comments()`.
Note that passing `div` to the `style` parameter will result in no additional list markup.

Props liuhaibin, jeremyfelt, functionalrhyme.
Fixes #49181.
No action taken yet
git: 3ebdc35
svn: r48596
200 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 00:57:26 +0000
Media: Filter out a few more special characters in `sanitize_file_name()`.
Props audrasjb.
Fixes #50231.
No action taken yet
git: 1191967
svn: r48595
201 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 00:25:47 +0000
Administration: Use sentence case for "Mark as spam" bulk action links for sites and users, for consistency with comments.
Follow-up to [48352].

See #40244.
No action taken yet
git: ce05bc1
svn: r48594
202 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 00:19:37 +0000
Administration: Capitalize `Trash` consistently in various messages.
When used as a noun referring to the "virtual" place, `Trash` should be capitalized.

Follow-up to [47233], [48352].

See #45317, #40244.
No action taken yet
git: f2d9819
svn: r48593
203 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-24 00:01:32 +0000
Formatting: Filter out the bullet character in `sanitize_title_with_dashes()`.
Props roytanck, deepaklalwani, veromary.
Fixes #49791.
No action taken yet
git: 1ef40b1
svn: r48592
204 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 23:26:50 +0000
Build/Test Tools: Check if all the required constants are defined before running the test suite.
Follow-up to [47904].

Props azaozz, TimothyBlynJacobs, SergeyBiryukov.
Fixes #50251.
No action taken yet
git: b932c54
svn: r48591
205 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 21:53:43 +0000
Docs: Miscellaneous DocBlock corrections.
See #49572.
No action taken yet
git: 81a12a7
svn: r48590
206 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 21:09:04 +0000
Docs: Another pass at some inline docs fixes mostly made by PHPCBF.
See #49572, #50744
No action taken yet
git: 1120269
svn: r48589
207 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 21:06:26 +0000
I18N: Further adjust some update/install strings for consistency.
Follow-up to [48568], [48569].

See #50708, #50714.
No action taken yet
git: 098fc4b
svn: r48588
208 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 20:19:20 +0000
I18N: Merge two "Return to top" strings.
Props ramiy, carike, whyisjake.
Fixes #50743.
No action taken yet
git: 6e94ee6
svn: r48587
209 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 20:11:07 +0000
Site Health: Correct the quotes for the `tested` value of mock plugin data in auto-updates test.
Follow-up to [48584].

See #50662.
No action taken yet
git: 285fa03
svn: r48586
210 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 19:59:16 +0000
Docs: First pass at some inline docs fixes mostly made by PHPCBF.
See #49572, #50744
No action taken yet
git: b604663
svn: r48585
211 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 19:04:38 +0000
Docs: Use more appropriate variable names in the inline docs for action and filter parameters.
See #49572
No action taken yet
git: c0d3d76
svn: r48584
212 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-23 19:01:24 +0000
Site Health: Pass all expected parameters to `auto_update_{$type}`.
This prevents fatal errors when other hooked functions are expecting both parameters. 

Props dd32, desrosj, audrasjb, pbiron.
Fixes #50662.
No action taken yet
git: 7ddd0a5
svn: r48583
213 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 18:53:25 +0000
I18N: Update "Default Template" string to match the sentence case used in the block editor.
Props ramiy.
Fixes #50742.
No action taken yet
git: 7d50110
svn: r48582
214 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-23 18:41:41 +0000
General: Ensure the database upgrades from [48575] are run.
This corrects the database version to match the commit number the upgrade changes were made.

See #50413.
No action taken yet
git: b554928
svn: r48581
215 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 18:21:13 +0000
Tests: Update the `es_ES` string used in `wp_send_user_request()` tests to match the current translation.
Props a2hosting.
Fixes #50741.
No action taken yet
git: 6c17894
svn: r48580
216 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 13:48:37 +0000
Docs: Add missing description for `wp_convert_widget_settings()` parameters.
Props stevenlinx.
Fixes #50738.
No action taken yet
git: a3427e3
svn: r48579
217 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 13:32:34 +0000
Coding Standards: Use a consistent naming pattern for variables in `wp-includes/comment-template.php`.
See #49542.
No action taken yet
git: 8dc4165
svn: r48578
218 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 13:10:40 +0000
I18N: Add context to privacy request status strings.
These strings already have a context in `create_initial_post_types()`, and should use the same context in `_wp_privacy_statuses()`.

Props ramiy, audrasjb.
Fixes #50740.
No action taken yet
git: c092076
svn: r48577
219 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-23 13:09:50 +0000
Docs: Improve description for `comment_id_fields()`.
Rename the `$id` parameter to `$post_id` for clarity.

Props stevenlinx.
Fixes #50737.
No action taken yet
git: 7d4c775
svn: r48576
220 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 07:37:57 +0000
Docs: Further corrections and improvements to various inline docblocks.
See #49572
No action taken yet
git: cefe2c7
svn: r48575
221 of 4634
Author
Aaron Jorbin <[email protected]> 2020-07-23 03:12:49 +0000
General: Update code for readability and inclusion
There are two pieces in here:

1) The update to change blacklist to blocklist is moved to disallowed_list. "Block" has a meaning in our code, and there could be ambiguity between this code and code related to blocks.

2) This improves backwards compatibility for code that was accessing the now deprecated code.

Previously: [48477], [48405], [48400], [48121], [48122], [48124], [48142], [48566]

Props: desrosj, SergeyBiryukov, johnjamesjacoby
Fixes: #50413
No action taken yet
git: 5e35ad2
svn: r48574
222 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 00:50:57 +0000
Docs: Various formatting improvements to inline docblocks.
See #49572
No action taken yet
git: 4b2abac
svn: r48573
223 of 4634
Author
John Blackbourn <[email protected]> 2020-07-23 00:46:56 +0000
Docs: Various corrections to inline docblocks.
See #49572
No action taken yet
git: 447d25f
svn: r48572
224 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-23 00:42:48 +0000
Media: Add "loading" as an allowed kses image attribute
With loading="lazy" being added to all images in [47554], let's ensure that it passes kses attributes too.

Fixes #50731.
Props TimothyBlynJacobs, peterwilsoncc, azaozz.
No action taken yet
git: e306fca
svn: r48571
225 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-22 22:29:23 +0000
REST API: Remove textdomain from doing it wrong message.
See #50075.
Props dlh.
No action taken yet
git: 99736ae
svn: r48570
226 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-22 22:19:25 +0000
i18n: Merge similar translation strings in wp-admin/options.php
WARNING! is now Warning:

You have been warned.

Fixes #50715.
Props: ramiy, audrasjb, ocean90.
No action taken yet
git: f976a73
svn: r48569
227 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-22 22:08:25 +0000
i18n: Merge similar translation strings to "Update failed".
Fixes #50714.
Props ramiy, ocean90.
No action taken yet
git: 2c617a4
svn: r48568
228 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-22 21:57:19 +0000
I18N: Merge similar "Installation failed" strings
Fixes #50708.

Props ramiy, ocean90, audrasjb.
No action taken yet
git: 00f4e4f
svn: r48567
229 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-22 21:53:22 +0000
I18N: Update some strings to have periods.
Fixes #50707.
Props ramiy, afercia, audrasjb.
No action taken yet
git: 857d345
svn: r48566
230 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-22 18:50:30 +0000
General: Rename `remove_option_allowed_list()` to `remove_allowed_options()`.
This was missed in [48142] which renamed `add_option_allowed_list()` to `add_allowed_options()` for better readability. The two functions should have consistent names.

See #50413.
No action taken yet
git: d2a1fb9
svn: r48565
231 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 12:54:22 +0000
Upgrade/Install: Don't trigger database upgrade on Ajax requests via `wp-admin/async-upload.php`.
Props schlessera, jgrodel, elrae, davidbaumwald, hareesh-pillai, adamsilverstein, SergeyBiryukov.
Fixes #39459.
No action taken yet
git: 60dc387
svn: r48564
232 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 12:17:58 +0000
Accessibility: Themes: Consistently use an underline for "Enable auto-updates" link and theme author link in theme overlay.
Props chetan200891, sabernhardt, afercia.
Fixes #50697.
No action taken yet
git: d6c7a47
svn: r48563
233 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 11:34:32 +0000
Docs: Correct type and improve description for the `$fields` parameter of `WP_Query::parse_query()`.
Props ocean90, palmiak, johannadevos, noisysocks.
Fixes #44305.
No action taken yet
git: e88e84c
svn: r48562
234 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 11:33:51 +0000
Docs: Improve formatting of the `$fields` parameter description in `WP_Term_Query::__construct()`.
See #44305, #49572.
No action taken yet
git: 3d2cd19
svn: r48561
235 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 00:27:36 +0000
Docs: Correct type for the `$theme` parameter of `theme_auto_update_debug_string` filter.
Follow-up to [48546], [48549], [48552].

See #50663.
No action taken yet
git: 712f548
svn: r48560
236 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 00:15:33 +0000
Site Health: Fix some typos in the test for plugin and theme auto-updates.
Follow-up to [48548], [48558], [48559].

See #50662.
No action taken yet
git: 874e6af
svn: r48559
237 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 00:13:21 +0000
Site Health: Correct inverted logic for themes in the test for plugin and theme auto-updates.
Follow-up to [48548], [48558].

See #50662.
No action taken yet
git: 8cbd2ca
svn: r48558
238 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-22 00:05:45 +0000
Site Health: Add the test for plugin and theme auto-updates to `WP_Site_Health::get_tests()`.
This ensures that the test actually runs.

Follow-up to [48548].

See #50662.
No action taken yet
git: f840dab
svn: r48557
239 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 23:12:22 +0000
Widgets: Make sure image widgets with custom image size render captions.
Props kasparsd, JavierCasares, audrasjb.
Fixes #50160.
No action taken yet
git: 3da4870
svn: r48556
240 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 21:59:46 +0000
REST API: Use consistent error messages when managing network plugins.
Props ramiy.
Fixes #50729.
No action taken yet
git: df8399d
svn: r48555
241 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-21 21:20:22 +0000
REST API: Optimize rest_filter_response_by_context performance.
In [47758] a new function `rest_filter_response_by_context` was introduced to expand the JSON schema features supported by the context filtering mechanism.

This commit improves the performance of that function by eliminating repetitive comparisons and loops. Additionally, it improves multi-type support for object + array types.

Fixes #50700.
Props dlh.
No action taken yet
git: b11757e
svn: r48554
242 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 21:04:57 +0000
Site Health: Use a consistent label for theme auto-updates in debug data.
Props audrasjb.
Fixes #50728.
No action taken yet
git: 2636208
svn: r48553
243 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 20:13:59 +0000
Sitemaps: Rename `wp_register_sitemap()` to `wp_register_sitemap_provider()`.
Follow-up to [48536], [48540], [48541].

Props pbiron.
Fixes #50724.
No action taken yet
git: 44335fd
svn: r48552
244 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 18:42:24 +0000
Site Health: Simplify the logic for displaying whether auto-updates are enabled for plugins and themes.
Remove some extra variables.

Follow-up to [48546], [48549].

See #50663.
No action taken yet
git: 9875847
svn: r48551
245 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 17:54:05 +0000
WordPress 5.5 Beta 3 version bump.
No action taken yet
git: f3a6fc5
svn: r48550
246 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 17:30:06 +0000
WordPress 5.5 Beta 3.
No action taken yet
git: 6440e85
svn: r48549
247 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 17:06:55 +0000
Site Health: Rename the filters added in [48546] for clarity.
See #50663.
No action taken yet
git: 5e14b1b
svn: r48548
248 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 17:06:00 +0000
Site Health: Add tests to check for potential issues with plugin and theme auto-updates.
Fixes #50662.
Props desrosj, audrasjb.
No action taken yet
git: ffef4da
svn: r48547
249 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 16:52:48 +0000
Media: Pass the attachment ID to the `wp_image_file_matches_image_meta` filter.
Props spacedmonkey.
Fixes #50722.
No action taken yet
git: 11fe34d
svn: r48546
250 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 16:52:47 +0000
Site Health: Add auto-update information to for plugins and themes.
New filters:

* `plugin_auto_update_debug_str`
* `theme_auto_update_debug_str`

Fixes #50663.
Props pbiron, audrasjb, davidbaumwald.
No action taken yet
git: e10083b
svn: r48545
251 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 16:31:06 +0000
I18N: Add context to some theme strings for consistency.
Props ramiy, ocean90.
Fixes #50709.
No action taken yet
git: 0da858f
svn: r48544
252 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 16:18:53 +0000
Site Health: Rename `upload_max` array key in file upload checks to `max_effective_size` for clarity.
Follow-up to [48535].

See #50038.
No action taken yet
git: 7bcdf88
svn: r48543
253 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-21 16:12:49 +0000
Sitemaps: Replace `wp_sitemaps_register_providers` filter with more suitable `wp_sitemaps_add_provider` filter.
The previous filter failed the goal of allowing developers to filter all providers before they are registered, since it only filtered the built-in ones.

The more specific `wp_sitemaps_add_provider` filter enables exactly that, as it filters every sitemap provider right before it is added to the sitemaps registry.

Props pbiron, pfefferle, Chouby, swissspidy.
Fixes #50660.
No action taken yet
git: bea9ce7
svn: r48542
254 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-21 16:08:44 +0000
Administration: Ensure SVG icons in admin menus are correctly colored.
Props ryelle.
Fixes #50555.
No action taken yet
git: 8c7fe17
svn: r48541
255 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 16:04:35 +0000
Sitemaps: Rename `wp_get_sitemaps_providers()` to `wp_get_sitemap_providers()`.
Follow-up to [48536], [48540].

Props pbiron, swissspidy, SergeyBiryukov.
See #50724.
No action taken yet
git: 83b94f5
svn: r48540
256 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-21 15:55:21 +0000
Sitemaps: Rename `wp_get_sitemaps()` to `wp_get_sitemaps_providers()`
Following [48536], rename the function to match the rest of the sitemaps logic.

Also eliminates some dead code after [48523].

Props pbiron.
See #50724. See #50643.
No action taken yet
git: 3269e83
svn: r48539
257 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 15:51:22 +0000
Site Health: Move `post_max_size` and `upload_max_filesize` out of a translatable string in file upload checks.
Simplify some other strings, use a consistent format for translator comments.

Follow-up to [48535].

See #50038.
No action taken yet
git: 0d956d4
svn: r48538
258 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 15:38:40 +0000
Site Health: Remove `parse_ini_size()`, use the existing `wp_convert_hr_to_bytes()` function instead.
Follow-up to [48535].

See #50038.
No action taken yet
git: 09754a7
svn: r48537
259 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-21 15:36:17 +0000
Editor: Ensure the required assets for the block directory are enqueued.
This fixes an issue where the block directory appears unstyled due to the stylesheets not being enqueued.

Props ryelle, timothyblynjacobs, earnjam.
Fixes #50661.
No action taken yet
git: 383540b
svn: r48536
260 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 15:27:48 +0000
Sitemaps: Rename 'sitemap' to 'provider' in `WP_Sitemaps_Registry` class.
This class is for registering sitemap providers, not individual sitemaps.

Props swissspidy.
Fixes #50724.
No action taken yet
git: 5ffe591
svn: r48535
261 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 15:19:58 +0000
Site Health: Include new tests to check for the ability to upload files.
Several new checks:

* `max_file_uploads`
* `file_uploads`
* `post_max_size`
* `upload_max_filesize`
* `upload_max`
* `max_file_uploads`

In addition, new function `parse_ini_size()` that converts shorthand byte strings to bytes. Useful for size comparisons.

Fixes #50038.
Props dd32, donmhico, JavierCasares, SergeyBiryukov, ayeshrajans, Clorith, ipstenu, sabernhardt, whyisjake.
No action taken yet
git: 3ef1fa5
svn: r48534
262 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 14:40:43 +0000
Site Health: Use consistent error messages when switching plugin or theme auto-updates on or off.
Props ramiy.
Fixes #50721.
No action taken yet
git: cfb25b2
svn: r48533
263 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 14:35:13 +0000
Block Editor: Move the `add_action()` call for `_register_core_block_patterns_and_categories()` above `check_theme_switched()`.
Follow-up to [48492], [48531].

See #50669.
No action taken yet
git: 38cade3
svn: r48532
264 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-21 13:55:45 +0000
Sitemaps: Correctly enforce maximum number of sitemaps in index.
Before this change, the limit of 50k entries was enforced for the number of providers, not the amount of sitemaps all providers add to the index in total.

Props pbiron, swissspidy.
Fixes #50666.
No action taken yet
git: fd9f723
svn: r48531
265 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 13:13:54 +0000
Block Editor: Move the `add_action()` call for `_register_core_block_patterns_and_categories()` to `wp-includes/default-filters.php`.
Follow-up to [48492].

Props desrosj.
Fixes #50669.
No action taken yet
git: 99f5b60
svn: r48530
266 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 12:56:40 +0000
Mail: Make sure the `PHPMailer` class is only required once if a plugin requires `wp-includes/class-phpmailer.php` directly.
Follow-up to [48033].

Props david.binda.
Fixes #50716. See #41750.
No action taken yet
git: ea352ee
svn: r48529
267 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 12:47:58 +0000
Docs: Improve description for `edit_post()`.
Props stevenlinx.
Fixes #50713.
No action taken yet
git: 0f86642
svn: r48528
268 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-21 12:35:32 +0000
Site Health: Correct the message for snoozed email verifications.
Follow-up to [48522].

Fixes #48333.
No action taken yet
git: 69ec426
svn: r48527
269 of 4634
Author
Ella van Durpe <[email protected]> 2020-07-21 12:12:43 +0000
Editor: update packages for Beta 3
Fixes #50712.
No action taken yet
git: 74cc64d
svn: r48526
270 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-21 12:01:10 +0000
REST API: Issue a _doing_it_wrong when registering a route without a permission callback.
The REST API treats routes without a permission_callback as public. Because this happens without any warning to the user, if the permission callback is unintentionally omitted or misspelled, the endpoint can end up being available to the public. Such a scenario has happened multiple times in the wild, and the results can be catostrophic when it occurs.

For REST API routes that are intended to be public, it is recommended to set the permission callback to the `__return_true` built in function.

Fixes #50075.
Props rmccue, sorenbronsted, whyisjake, SergeyBiryukov, TimothyBlynJacobs.
No action taken yet
git: fcc5243
svn: r48525
271 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-21 02:59:00 +0000
REST API, Media: Add `X-WP-Upload-Attachment-ID` HTTP header to enable retrying of post-processing of edited images if the server runs out of resources. This is the same as after uploading a new image, will do up to five additional requests to let the server create all image sub-sizes.
Fixes #50711.
No action taken yet
git: 2daa951
svn: r48524
272 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-21 01:36:16 +0000
REST API: Make plugin installation tests more robust on alternate test environments.
The REST API plugin installation tests use the `upgrader_pre_download` filter to avoid downloading the test plugin from WordPress.org. Previously, this would apply to any upgrader, which caused issues if the testing environment required a language update.

Now, the filter only overwrites the file if the `Plugin_Upgrader` is being used which should hopefully prevent the issue.

Props pfefferle, TimothyBlynJacobs.
Fixes #50671.
No action taken yet
git: 60d339c
svn: r48523
273 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 00:55:20 +0000
Sitemaps: Ensure correct HTTP status when sitemaps are disabled
If sitemaps are disabled, previously there would be a rewrite rule for the sitemap endpoint. This endpoint would display the homepage since there was a rewrite rule. Now, Sitemaps are loaded, and the proper HTTP headers are returned.

Fixes #50643.
Props swissspidy, kraftbj, donmhico.
No action taken yet
git: bd67e31
svn: r48522
274 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 00:41:35 +0000
Site Health: Ensure that there is a human readable time for snoozed email verifications.
This will be the time the was proposed, added to the reminder interval.

Fixes #48333.
Props SergeyBiryukov, desrosj.
No action taken yet
git: 4ba6020
svn: r48521
275 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-21 00:27:46 +0000
Comments: Don't show the filter/pagination actions if there are no comments to list.
It doesn't make sense to be able to filter the comments list table when there are are no (trashed/spam) comments available.

Fixes #40188.
Props swissspidy, Jim_Panse, menakas, akbarhusen429, dinhtungdu, birgire, SergeyBiryukov, davidbaumwald, rebasaurus, whyisjake.
No action taken yet
git: 5674e7e
svn: r48520
276 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-20 23:12:33 +0000
I18N: Add context to some plugin and theme strings for consistency.
Props ramiy, audrasjb.
Fixes #50710.
No action taken yet
git: 364759e
svn: r48519
277 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-20 21:23:26 +0000
I18N: Mark the strings with plugin and theme names in email notifications for translation.
Follow-up to [48517].

See #50350.
No action taken yet
git: 8406d51
svn: r48518
278 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-20 21:02:13 +0000
REST API, Media: Fix/improve the inline docs and name of the new `wp_edited_image_metadata` filter.
Props desrosj, azaozz.

See #44405.
No action taken yet
git: 83e78d8
svn: r48517
279 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-20 18:26:18 +0000
Administration: Include the new plugin and theme versions in email notifications.
This helps administrators keep track of which versions of plugins and themes are running on their site when auto-updates occur.

Props audrasjb, pbiron.
Fixes #50350.
No action taken yet
git: fa7b1bb
svn: r48516
280 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-20 15:47:37 +0000
Tests: Simplify some assertions in `phpunit/tests/media.php`.
Correct comments per the documentation standards.

Follow-up to [48496].

See #22101.
No action taken yet
git: e80b4f6
svn: r48515
281 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-20 13:39:34 +0000
Build/Test Tools: Update NPM packages in Twenty Nineteen.
This updates three packages:
- `@wordpress/browserslist-config` from `2.5.0` to `2.7.0`
- `autoprefixer` from `9.6.0` to `9.8.5`.
- `chokidar-cli` from `2.0.0` to `2.1.0`

See #49768.
No action taken yet
git: 167a876
svn: r48514
282 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-20 13:27:58 +0000
Bundled Themes: Rebuild Twenty Nineteen’s RTL stylesheet.
This adds the changes from [48073] to the `style-rtl.css` file.

See #45912.
No action taken yet
git: b98a607
svn: r48513
283 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-20 13:12:22 +0000
Embeds: Correct the version number when Hulu was deprecated.
Follow up of [48512]
See #50676.
No action taken yet
git: 0713ca1
svn: r48512
284 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-20 13:10:36 +0000
Embeds: Remove Hulu from the list of supported oEmbed providers.
The oEmbed service for Hulu no longer works and appears to have been silently disabled.

Props tacitonic, talldanwp, youknowriad, bph.
Fixes #50676.
No action taken yet
git: 0c19e1a
svn: r48511
285 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-20 11:52:59 +0000
Docs: Improve description for `add_user_to_blog()`.
Props stevenlinx.
Fixes #50701.
No action taken yet
git: 030f2a4
svn: r48510
286 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-19 21:17:55 +0000
Media: Migrate the data from the attachment post of the parent image when saving an edited image. Copy:
- `post_title`,
- `post_content` (image description),
- `post_excerpt` (image caption as saved in the DB),
- `_wp_attachment_image_alt` meta (alt text for the img tag as saved in the DB).

Props spacedmonkey, joedolson, TimothyBlynJacobs, azaozz.
Fixes #50675.
No action taken yet
git: b39df46
svn: r48509
287 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-19 17:09:43 +0000
Upgrade/install: Fix/clarify the "Upload in a zip format" string.
Props greenshady, mariovalney.
See #9757.
No action taken yet
git: d10a86a
svn: r48508
288 of 4634
Author
John Blackbourn <[email protected]> 2020-07-18 22:09:57 +0000
Docs: Miscellaneous docblock corrections.
See #49572
No action taken yet
git: 9331f7a
svn: r48507
289 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-18 11:37:59 +0000
Coding Standards: Use strict comparison in `wp-includes/wp-db.php`.
Props jenilk.
Fixes #49453.
No action taken yet
git: d54b8f7
svn: r48506
290 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-17 17:09:37 +0000
Administration: Reverse the arrow direction for database import/export icons.
In [48456], database import and export icons were introduced. However, the arrows were pointing in the wrong directions. This reverses the arrows to be pointing correctly based on the action described in the name.

Props johnbillion, joen, desrosj, empireoflight.
Fixes #49913.
No action taken yet
git: 3b5d373
svn: r48505
291 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-17 15:14:00 +0000
Options, Meta APIs: Reorder the parameters of `default_{$meta_type}_metadata` filter.
This brings consistency with the `get_{$meta_type}_metadata` filter and more closely matches the `get_metadata_default()` function signature.

Follow-up to [48502].

Props spacedmonkey.
See #43941.
No action taken yet
git: 2d0e9b1
svn: r48504
292 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-17 13:47:23 +0000
Docs: Correct documentation for the `$meta_key` parameter of `get_metadata_default()`.
The parameter is required, not optional.

Follow-up to [48502].

See #43941.
No action taken yet
git: 1c1a9de
svn: r48503
293 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-17 06:27:09 +0000
Plugins: Update the height of the Install Now button for new plugins.
Due to Thickbox shenanigans, the buttons height needed to be shrunk a little to center properly in the iframe.

Fixes #49828.

Props ibachal, Otto42, afercia.
No action taken yet
git: d525642
svn: r48502
294 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-17 02:57:04 +0000
Meta: Reorder the get_metadata_default() signature to match get_metadata().
The order of parameters in `get_metadata_default()` did not match the signature of `get_metadata()`. This could be confusing for developers who are familiar with the existing metadata API.

Fixes #43941.
Props SergeyBiryukov, spacedmonkey, johnjamesjacoby.
No action taken yet
git: f75522e
svn: r48501
295 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 22:22:05 +0000
Build/Test Tools: Bump lodash in twentytwenty as part of a security audit.
lodash: 4.17.15 👉 4.17.19

See #49768.
Props: dependabot.
No action taken yet
git: 162afe2
svn: r48500
296 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 22:13:54 +0000
Administration: Fix an index inconsistency in `get_admin_page_title()` function.
Ensure that `get_admin_page_title()` returns a value from pages registered using `add_menu_page()`.

Fixes #46081.

Props grapestain, valentinbora, SergeyBiryukov, audrasjb.
No action taken yet
git: e767133
svn: r48499
297 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 22:09:35 +0000
Code Formatting: Fix some formatting around `WP_REST_Attachments_Controller` tests.
See #50565.
No action taken yet
git: 0aab258
svn: r48498
298 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-16 21:54:37 +0000
REST API: Prevent attachment ID/image source mismatch when editing an image.
Fixes #50565.
No action taken yet
git: 082cb0a
svn: r48497
299 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 21:42:48 +0000
Posts, Post Types: Ensure that all post stati are countable in `wp_count_posts`.
When `wp_count_posts()` is cached, it does so with all statuses defaulted to 0. The problem is however, if this is called before all plugins have registered their desired statuses, they won't have that default.

Fixes #49685.

Props obliviousharmony, SergeyBiryukov.
No action taken yet
git: ceccb7b
svn: r48496
300 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 21:29:05 +0000
Feeds: Ensure that galleries can be output as a list of links in feeds.
Adjusts the gallery shortcode handler to check for the `link` attribute when outputting to a feed.

Fixes #22101.

Props ifrins, mdgl, SergeyBiryukov, chriscct7, stevenkword, iworks, DrewAPicture, birgire, whyisjake.
No action taken yet
git: 0fa4801
svn: r48495
301 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-16 21:10:03 +0000
Coding Standards: Update the docblock to remove superflous `since`.
The `@deprecated` DocBlock tag should start with the version followed by the description of what to use instead.

Fixes #44959.

Props keesiemeijer, sabernhardt.
No action taken yet
git: 5b9b012
svn: r48494
302 of 4634
Author
Riad Benguella <[email protected]> 2020-07-16 14:11:40 +0000
Block Editor: Remove the gutenberg domain name from the block-patterns.php file
Props SergeyBiryukov.
Fixes #50669.
No action taken yet
git: da730fc
svn: r48493
303 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-16 13:17:13 +0000
Upgrade/Install: Check if the theme installer skin's `overwrite` property exists in `Theme_Upgrader::install_strings()`.
This ensures consistency with `Plugin_Upgrader::install_strings()` and resolves an issue caused by the property not existing in other upgrader implementations.

Props schlessera, azaozz.
See #50670.
No action taken yet
git: bd63261
svn: r48492
304 of 4634
Author
Riad Benguella <[email protected]> 2020-07-16 11:48:49 +0000
Block Editor: Add theme support flag to opt-out of Core Block Patterns.
WordPress Core comes by default with a number of block patterns and a frequent request was to be able to opt-out of the Core block patterns. 
You can now opt-out using remove_theme_support( 'core-block-patterns' )

Props desrosj, nosolosw.
Fixes #50669.
No action taken yet
git: b001723
svn: r48491
305 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-15 12:08:32 +0000
Docs: Add return value description for `register_theme_directory()`.
Props stevenlinx.
Fixes #50665.
No action taken yet
git: caefeee
svn: r48490
306 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-15 11:21:23 +0000
Docs: Link to `add_theme_support()` for the list of supported theme features in `current_theme_supports()` and related functions.
Props stevenlinx.
Fixes #50657.
No action taken yet
git: afb1118
svn: r48482
307 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-14 17:39:48 +0000
Post 5.5 Beta 2 version bump.
No action taken yet
git: 8921997
svn: r48481
308 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-14 17:00:11 +0000
WordPress 5.5 Beta 2.
No action taken yet
git: c843cf1
svn: r48480
309 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 16:39:44 +0000
Taxonomy: Make some adjustments to handling default terms for custom taxonomies:
* Move default term assignment from `wp_set_object_terms()` to `wp_insert_post()`.
* Make sure the passed taxonomy list overwrites the existing list if not empty.
* Remove the default term option on `unregister_taxonomy()`.
* Prevent deletion of the default term in `wp_delete_term()`.

Props enrico.sorcinelli, TimothyBlynJacobs.
See #43517.
No action taken yet
git: 9181ecf
svn: r48479
310 of 4634
Author
Andrea Fercia <[email protected]> 2020-07-14 15:44:16 +0000
Accessibility: Security: Improves the accessible audible messages for Plugins & Themes Auto-Updates.
- changes the politeness level of the two error messages introduced in [47835] to `assertive`
- remove unnecessary `polite` parameters as that's the default value

See #50512, #50052.
No action taken yet
git: 74b985f
svn: r48478
311 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 12:39:16 +0000
Docs: Synchronize description for the `$allowed_html` parameter of various KSES functions.
Follow-up to [43016].

Props Christian1012, jdgrimes, markparnell.
Fixes #39542. See #33801.
No action taken yet
git: 7bdff38
svn: r48477
312 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-14 12:31:22 +0000
General: Rename the `$new_whitelist_options` global variable.
This change renames `$new_whitelist_options` to `$new_allowed_options`. This makes the variable’s purpose more clear, and promotes using more inclusive language.

For backwards compatibility, the new variable is passed by reference to the old one.

Follow up to [48121].

Props ayeshrajans, desrosj, jorbin, SergeyBiryukov.
See #50413.
Fixes #50434.
No action taken yet
git: 0ee9100
svn: r48476
313 of 4634
Author
swissspidy <[email protected]> 2020-07-14 12:24:02 +0000
Sitemaps: Ensure entry for ‘page’ post type sitemap in index.
If there are no pages and no static homepage, there will still be one sitemap including the homepage URL.

This change ensures that this sitemap is correctly listed in the sitemap index.

Props Chouby, pacifika, elrae.
Fixes #50571.
No action taken yet
git: 7d5b488
svn: r48475
314 of 4634
Author
John Blackbourn <[email protected]> 2020-07-14 12:08:28 +0000
Docs: Improve docs for arguments that accept a numerically indexed array of associative arrays.
See #49572
No action taken yet
git: efb0b58
svn: r48474
315 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-14 11:54:49 +0000
Sitemaps: Exclude post types and taxonomies that are not publicly queryable.
Props Cybr.
Fixes #50607.
No action taken yet
git: fa9e258
svn: r48473
316 of 4634
Author
John Blackbourn <[email protected]> 2020-07-14 11:54:26 +0000
Docs: Correct and improve inline docs for parameters that accept a callback function.
See #49572
No action taken yet
git: 585f623
svn: r48472
317 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-14 11:52:43 +0000
Sitemaps: Add missing slash when calling `home_url()` for consistency.
Props Chouby.
Fixes #50570.
No action taken yet
git: 649b7aa
svn: r48471
318 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-14 11:43:54 +0000
Sitemaps: Add wrapping `<div>` around sitemap in stylesheet.
This makes it easier to style the sitemap and for example center the entire content area.

Props ramiy.
Fixes #50622.
No action taken yet
git: cf4897f
svn: r48470
319 of 4634
Author
Pascal Birchler <[email protected]> 2020-07-14 11:41:47 +0000
Sitemaps: Pass full paths to `home_url()` calls.
This makes it easier for plugins using the `home_url` filter to detect sitemap URLs.

Props Chouby.
Fixes #50592.
No action taken yet
git: 479a125
svn: r48469
320 of 4634
Author
Ella van Durpe <[email protected]> 2020-07-14 11:36:39 +0000
Editor: update packages for beta 2
Fixes #50651.
No action taken yet
git: 63ad924
svn: r48468
321 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 11:15:28 +0000
Privacy: Set the direction for the "Username or email address" field on privacy screens to LTR.
This is consistent with other email inputs across the admin.

Follow-up to [27743], [42967].

Props man4toman, sushyant.
Fixes #50625.
No action taken yet
git: a128b52
svn: r48467
322 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 11:05:01 +0000
Docs: Improve description for `get_blog_post()`.
Props stevenlinx.
Fixes #50655.
No action taken yet
git: 80fae63
svn: r48466
323 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 01:40:33 +0000
Tests: Ignore EOL differences in some tests using multiline string assertions.
Unix vs. Windows EOL style mismatches can cause misleading failures in tests using the heredoc syntax (`<<<`) or multiline strings as the expected result.

Follow-up to [46612], [48443].

See #31432.
No action taken yet
git: 719dcd2
svn: r48465
324 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-14 01:35:47 +0000
Administration: Attempt to even-out the new Up/Down arrows in metabox headings and make them look a bit better. Also group them a little closer together in an attempt to reduce confusion of having two down arrows next to one another. Move the focus outline to the button instead of only the icon.
Fixes #39074.
No action taken yet
git: 022ebde
svn: r48464
325 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 01:28:17 +0000
Tests: Replace hardcoded `/tmp/` references with `get_temp_dir()`.
This allows more tests to pass on Windows.

Props danielhuesken, DJPaul, christophherr, joemcgill, netweb, davidbaumwald, SergeyBiryukov.
Fixes #40856, #39975.
No action taken yet
git: 0ded98f
svn: r48463
326 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-14 00:32:36 +0000
Tests: Copy themes from `tests/phpunit/data` to `wp-content/themes`, instead of creating a symlink.
This allows the theme file tests in `phpunit/tests/link/themeFile.php` to run on Windows without requiring administrative privileges.

Follow-up to [42812], [42819].

Props danielhuesken, christophherr, davidbaumwald, SergeyBiryukov.
See #40856, #39975.
No action taken yet
git: f36c42c
svn: r48462
327 of 4634
Author
John Blackbourn <[email protected]> 2020-07-13 22:08:16 +0000
Docs: Miscellaneous docblock corrections and improvements.
See #49572
No action taken yet
git: c3cdd9c
svn: r48461
328 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-13 20:13:49 +0000
Customize: Ensure that widgets and nav-menus can be closed after entering content.
Previously, the ⌧ button would close the search panel, or remove the results. This restores that, in addition pressing escape will do the same.

Fixes #48198.

Props garrett-eclipse, tobifjellner, afercia, JavierCasares.
No action taken yet
git: 8136474
svn: r48460
329 of 4634
Author
Andrea Fercia <[email protected]> 2020-07-13 18:01:31 +0000
Accessibility: Improve reordering of the post boxes in the block editor meta boxes area.
Follow-up to [48373].
- ignores hidden "sortables" areas 
- hides the reorder buttons when there's only one post box 
- makes the reorder buttons slightly bigger to match the side of the toggle button

Fixes #39074.
No action taken yet
git: a932bb3
svn: r48459
330 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-13 17:06:57 +0000
Bundled Themes: Add custom color pallettes for block editor.
Gutenberg 7.9 added support for themes to bundle their own custom styles in to the editor. These changes have been added to 2010 - 2016.

See #50120. 

Props kjellr, sabernhardt, ianbelanger.
No action taken yet
git: d8c91ce
svn: r48458
331 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-13 15:18:49 +0000
Tests: Download Chromium for e2e and JS tests only.
This reduces the chance of random failures due to network timeouts and avoids the overhead of unnecessarily downloading ~120 MB for PHP tests.

Follow-up to [47449], [47459], [47867], [48177].

Fixes #50649.
No action taken yet
git: 6cba6fd
svn: r48457
332 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-13 14:40:27 +0000
Docs: Improve description of the `$text` parameter in `cancel_comment_reply_link()`.
Props stevenlinx.
Fixes #50642.
No action taken yet
git: 6cf53ad
svn: r48456
333 of 4634
Author
Jonathan Desrosiers <[email protected]> 2020-07-13 14:24:06 +0000
Administration: Update Dashicons to the latest version.
This update introduces the following new icons:

- `.dashicons-align-pull-left (f10a)`
- `.dashicons-align-pull-right (f10b)`
- `.dashicons-block-default (f12b)`
- `.dashicons-cloud-saved (f137)`
- `.dashicons-cloud-upload (f13b)`
- `.dashicons-columns (f13c)`
- `.dashicons-cover-image (f13d)`
- `.dashicons-embed-audio (f13e)`
- `.dashicons-embed-generic (f13f)`
- `.dashicons-embed-photo (f144)`
- `.dashicons-embed-post (f146)`
- `.dashicons-embed-video (f149)`
- `.dashicons-exit (f14a)`
- `.dashicons-html (f14b)`
- `.dashicons-info-outline (f14c)`
- `.dashicons-insert-after (f14d)`
- `.dashicons-insert-before (f14e)`
- `.dashicons-remove (f14f)`
- `.dashicons-shortcode (f150)`
- `.dashicons-table-col-after (f151)`
- `.dashicons-table-col-before (f152)`
- `.dashicons-table-col-delete (f15a)`
- `.dashicons-table-row-after (f15b)`
- `.dashicons-table-row-before (f15c)`
- `.dashicons-table-row-delete (f15d)`
- `.dashicons-saved (f15e)`
- `.dashicons-airplane (f15f)`
- `.dashicons-amazon (f162)`
- `.dashicons-bank (f16a)`
- `.dashicons-beer (f16c)`
- `.dashicons-bell (f16d)`
- `.dashicons-calculator (f16e)`
- `.dashicons-coffee (f16f)`
- `.dashicons-database-add (f170)`
- `.dashicons-database-export (f17a)`
- `.dashicons-database-import (f17b)`
- `.dashicons-database-remove (f17c)`
- `.dashicons-database-view (f17d)`
- `.dashicons-database (f17e)`
- `.dashicons-drumstick (f17f)`
- `.dashicons-edit-page (f186)`
- `.dashicons-food (f187)`
- `.dashicons-fullscreen-alt (f188)`
- `.dashicons-fullscreen-exit-alt (f189)`
- `.dashicons-games (f18a)`
- `.dashicons-google (f18b)`
- `.dashicons-hourglass (f18c)`
- `.dashicons-linkedin (f18d)`
- `.dashicons-money-alt (f18e)`
- `.dashicons-open-folder (f18f)`
- `.dashicons-pdf (f190)`
- `.dashicons-pets (f191)`
- `.dashicons-pinterest (f192)`
- `.dashicons-printer (f193)`
- `.dashicons-privacy (f194)`
- `.dashicons-reddit (f195)`
- `.dashicons-spotify (f196)`
- `.dashicons-superhero-alt (f197)`
- `.dashicons-superhero (f198)`
- `.dashicons-twitch (f199)`
- `.dashicons-whatsapp (f19a)`
- `.dashicons-youtube (f19b)`
- `.dashicons-car (f16b)`
- `.dashicons-podio (f19c)`
- `.dashicons-xing (f19d)`


This update is the final planned update of the Dashicons font. Moving forward, the more modern approach of using SVG icons directly (as the block editor currently does) will be explored. More information on the future of Dashicons can be found on the Make Design blog: https://make.wordpress.org/design/2020/04/20/next-steps-for-dashicons/.

Props joen, johnjamesjacoby, empireoflight, youknowriad, netweb, zodiac1978, desrosj, automaton, chrisvanpatten.
Fixes #49913.
No action taken yet
git: 4171c24
svn: r48455
334 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-13 13:33:32 +0000
Upgrade/Install: Simplify compatibility checks for uploaded plugins and themes for better readability.
Use `$new_plugin_data` and `$new_theme_data` as a shorthand for the corresponding `$this->upgrader` properties.

Follow-up to [48390], [48448].

Props afragen.
See #9757.
No action taken yet
git: dd50193
svn: r48454
335 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-12 21:18:38 +0000
Media: Fix `wp_image_file_matches_image_meta()` to also match when the original image URL is used.
Also refreshes and fixes some of the unit tests for media, and replaces test-image-large.png with test-image-large.jpg which is larger to allow testing of `original_image` in the image meta.

Fixes #50628.
No action taken yet
git: daf168c
svn: r48453
336 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-12 19:59:00 +0000
Upgrade/Install: Use `wp_strip_all_tags()` for the fields in the compare table on the "Update theme/plugin from uploaded zip" screen. Some may contain HTML.
See #9757.
No action taken yet
git: adcf3d8
svn: r48452
337 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-12 19:35:55 +0000
REST API: Add Content-Disposition, Content-MD5 and X-WP-Nonce as allowed cors headers.
The Content-Disposition and Content-MD5 headers allow for easier file uploading across domains by using a File/Blob object directly. The X-WP-Nonce header is allowed for making cross-origin and same-origin authenticated requests consistent.

Additionally a filter is introduced, "rest_allowed_cors_headers", to simplify the process of allowing additional request headers.

Props rmccue, TimothyBlynJacobs.
Fixes #41696.
No action taken yet
git: 26c296c
svn: r48451
338 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 13:20:58 +0000
Plugins: Make delete plugin message less scary.
This adds a check if the plugin actually has an uninstall routine before saying that its data will be deleted too.

Props samful, joostdevalk, joyously, Chouby, SergeyBiryukov.
Fixes #50346.
No action taken yet
git: cece47b
svn: r48450
339 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 11:34:18 +0000
Administration: Restore the `excerpt` key for the Extended view mode for backward compatibility for now.
Props Offereins.
See #49715.
No action taken yet
git: f051ed3
svn: r48449
340 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 11:00:16 +0000
Docs: Add a `@since` entry for the `$hook_extra` parameter added to `WP_Upgrader::download_package()`.
Follow-up to [48399].

See #49686.
No action taken yet
git: 51e92ce
svn: r48448
341 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 10:53:36 +0000
Upgrade/Install: Use `is_php_version_compatible()` and `is_wp_version_compatible()` in plugin and theme requirement checks.
Follow-up to [48390].

Props afragen.
See #9757.
No action taken yet
git: b161e12
svn: r48447
342 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 10:32:57 +0000
I18N: Move the "WordPress Backups" support URL to its own translatable string.
Follow-up to [48390].

See #9757.
No action taken yet
git: 8c2443d
svn: r48446
343 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 01:17:51 +0000
Docs: Miscellaneous DocBlock corrections for plugin and theme updates.
See #49572.
No action taken yet
git: 9d30b02
svn: r48445
344 of 4634
Author
SergeyBiryukov <[email protected]> 2020-07-12 01:14:01 +0000
Administration: Handle the result of `Plugin_Upgrader::bulk_upgrade()` for a plugin that is already at the latest version in the same way it is handled for themes.
This corrects a fragile check of the result in `wp_ajax_update_plugin()` that depended on the internal array pointer, and brings some consistency with `wp_ajax_update_theme()`.

Follow-up to [37714], [48401].
See #50448.
No action taken yet
git: 7cf1e60
svn: r48444
345 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-12 01:11:35 +0000
Docs: Improve documentation for `sanitize_user()`, `sanitize_title()`, `sanitize_title_with_dashes()`.
See #49572.
No action taken yet
git: 43c193f
svn: r48443
346 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 23:27:51 +0000
Tests: Ignore EOL differences in email tests using multiline string assertions.
Unix vs. Windows EOL style mismatches can cause misleading failures in tests using the heredoc syntax (`<<<`) or multiline strings as the expected result.

Follow-up to [46612], [48033].

Props davidbaumwald.
See #31432, #41750.
No action taken yet
git: accf884
svn: r48442
347 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 22:50:36 +0000
Docs: Correct comments in `tests/formatting/WPSlash.php` per the documentation standards.
See #49572.
No action taken yet
git: 4d964a8
svn: r48441
348 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 22:46:27 +0000
Docs: Synchronize `@since` notes for `add_magic_quotes()` and `wp_slash()`.
Follow-up to [48205], [48433].

See #49572.
No action taken yet
git: 7137014
svn: r48440
349 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 22:42:35 +0000
Bootstrap/Load: Adjust the logic in `add_magic_quotes()` for better readability.
Follow-up to [48205].

See #48605.
No action taken yet
git: a9368a8
svn: r48439
350 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 21:46:29 +0000
Menus: Simplify the test for `wp_update_nav_menu_item()` with special characters in category name.
The `menu-item-title` value is saved as a `post_title` property, so the resulting property can be checked directly, without a callback.

Follow-up to [48416].

See #48011.
No action taken yet
git: d5cfd5c
svn: r48438
351 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 21:13:56 +0000
Revisions: Restore the return value of `wp_get_post_autosave()` to the documented type of `WP_Post` for backward compatibility.
Follow-up to [48422].

See #34560.
No action taken yet
git: 8f39f8e
svn: r48437
352 of 4634
Author
Timothy Jacobs <[email protected]> 2020-07-11 20:32:19 +0000
REST API: Sanitize block renderer attributes.
In [48069] the Block Renderer was changed to register a single route for all dynamic blocks. Validation was dynamically applied based on the requested block, but sanitization was not. This commit adds the same sanitization back to the block attributes.

Props manooweb.
Fixes #50620. See #48079.
No action taken yet
git: c42b6b5
svn: r48436
353 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 12:28:07 +0000
Revisions: Replace `array_shift()` with `reset()` in `register_and_do_post_meta_boxes()` for better performance.
Follow-up to [31829], [48422].

See #34560.
No action taken yet
git: b4232b7
svn: r48435
354 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-11 12:12:46 +0000
Coding Standards: Use strict type check for `in_array()` in `wp-includes/feed.php`.
Additionally:
* Correct inline comments per the documentation standards.
* Correct the `@ticket` reference in `tests/feed/atom.php`.

Follow-up to [48429].

See #33591.
No action taken yet
git: 8dc7f1c
svn: r48434
355 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-11 00:34:59 +0000
Build/Test Tools: Bump lodash as part of an npm audit.
lodash 4.17.17 👉 4.17.19

See #49768.
No action taken yet
git: 21273c3
svn: r48433
356 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-11 00:11:57 +0000
Formatting: Prevent wp_slash from returning non-strings as strings.
If a bool/float/int is passed into wp_slash it will be coerced into a string.

This changes the behavior to only slash strings. At the same time, handles recursion a little nicer by calling array_map for arrays.

Fixes #42195, #24106.

Props johnbillion, andizer, jrf, ryotasakamoto, SergeyBiryukov, donmhico, TobiasBg, markoheijnen, ryan, nacin, devesine, whyisjake.
No action taken yet
git: d42bdcb
svn: r48432
357 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 23:26:31 +0000
Formatting: Improve the docblock for `sanitize_title()`.
Since sanitize title is largely used for html attributes, or post slugs, make note that accents will be removed and that the string will be limited to alphanumeric characters, underscores, and dashes.

Fixes #33756.
Props ericlewis, swissspidy, wonderboymusic, psdtohtmlguru, DrewAPicture, SergeyBiryukov, sjmur, gma992, shulard, ebinnion, whyisjake.
No action taken yet
git: 7c1ff08
svn: r48431
358 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 23:13:16 +0000
Coding Standards: Ensure strict type check.
See [48429], #33591.
No action taken yet
git: 5d85a53
svn: r48430
359 of 4634
Author
Andrew Ozz <[email protected]> 2020-07-10 23:04:08 +0000
Media: Tiny logic fix in `wp_image_file_matches_image_meta()` after [48329]. No need to look in `sizes` if the full size image path/URL matches.
See #50543.
No action taken yet
git: 4337c25
svn: r48429
360 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 22:21:22 +0000
Feeds: Ensure that enclosures produce valid XML.
Metadata that is stored on newlines has the possibility of missing values, so rather then coercing values, we can check for them and then implicity set the values.

Fixes #33591.
Props jonnybot, stevenkword, vtieu, birgire, SergeyBiryukov, davidbaumwald, rebasaurus, whyisjake.
No action taken yet
git: 9949996
svn: r48428
361 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 22:01:57 +0000
Themes: Correct closing tag for the "Enable auto-updates" button in the JS template for theme auto-update setting.
Follow-up to [48418].

See #50516.
No action taken yet
git: d0b6778
svn: r48427
362 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 21:13:25 +0000
Docs: Improve description for the JS function that hides the update button for expired plugin or theme uploads.
Add missing `@since` tag.

Follow-up to [48417].

See #50612.
No action taken yet
git: 72d5862
svn: r48426
363 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 20:21:01 +0000
Docs: Improve `@return` tags for various conditional tags.
Props stevenlinx, SergeyBiryukov.
Fixes #50626.
No action taken yet
git: a7a91ba
svn: r48425
364 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 16:10:07 +0000
Sitemaps: Remove some extra space from `WP_Sitemaps_Stylesheet::get_stylesheet_css()`.
Follow-up to [48414].

See #50449.
No action taken yet
git: 5e160ea
svn: r48424
365 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 16:02:00 +0000
Administration: Bring some consistency to handling list table view modes.
* Remove duplicate variables and DocBlocks.
* Add missing description for the `$mode` global.
* Use sentence case for "Compact view" and "Extended view" labels.

Follow-up to [48398], [48423].

Props afercia, Offereins, SergeyBiryukov.
See #49715.
No action taken yet
git: 6c4f669
svn: r48423
366 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 16:00:42 +0000
Administration: Make some adjustments to `WP_Screen::render_view_mode()`:
* Restore the `$mode` global for backward compatibility.
* Remove redundant check, as `$mode` is already set at this point, and already defaults to `list` via `get_user_setting()`'s second argument.
* Use sentence case for "View mode" and "Extended view" labels.

Follow-up to [48398].

See #49715.
No action taken yet
git: 4adb926
svn: r48422
367 of 4634
Author
Adam Silverstein <[email protected]> 2020-07-10 15:12:00 +0000
Revisions: optimize performance when post has large number of revisions.
Improve speed and reduce the memory footprint when loading posts with many revisions.

* Use a direct query in `wp_get_post_autosave` to avoid loading all revisions.
* Query for IDs vs full objects in `register_and_do_post_meta_boxes`.

Props pdfernhout, johnnyb, miqrogroove, ocean90, senatorman, DBrumbaugh10Up, martijn-van-der-kooij, pavelevap, mackensen, mikeyarce, whyisjake.
Fixes #34560.
No action taken yet
git: 73d3e9c
svn: r48421
368 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 12:44:38 +0000
Coding Standards: Use strict comparison in `WP_List_Util::filter()`.
Correct comments per the documentation standards.

See #49542, #49572.
No action taken yet
git: 7b27f3f
svn: r48420
369 of 4634
Author
Sergey Biryukov <[email protected]> 2020-07-10 11:34:41 +0000
Docs: Correct documentation for `customize_controls_head` hook and `_customizer_mobile_viewport_meta()` function.
Follow-up to [48412].

See #47369.
No action taken yet
git: 26e29a5
svn: r48419
370 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 06:46:03 +0000
Administration: Better align labels on the discussion options page.
The labels for Comment Moderation, and Comment Blocklist are now aligned properly with the adjacent text.

Fixes #37384.
Props ankit-k-gupta, karmatosed, FolioVision, desrosj, valentinbora, samful, whyisjake.
No action taken yet
git: 1b251fe
svn: r48418
371 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 06:16:06 +0000
Upgrade/Install: Use ARIA button class on plugin and theme auto-updates action links
According to the [accesability guidelines](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/accessibility/#semantics-for-controls), the control should be a link when JavaScript is not available and a button the rest of the time.

In addition, handlers were added for spacebar usage, and some changes to the a11y speak verbiage.

Fixes #50516.
Props ryokuhi, audrasjb, afercia, whyisjake/
No action taken yet
git: bf93e96
svn: r48417
372 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 06:06:46 +0000
Upgrade/Install: Ensure cleanup after canceled update.
Ensure that the uploaded zip is hidden from the media library, where a task will remove failed installs after two hours.

Fixes #50612.

Props psykro, desrosj, joyously, azaozz, noisysocks, whyisjake.
No action taken yet
git: 3667d18
svn: r48416
373 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 05:58:49 +0000
Menus: Ensure that category menus with special characters can be updated.
Slashes and HTML encoding could cause some menus not to be updated.

Fixes #48011.

Props zaheerahmad, achyuthajoy, desrosj, pento, SergeyBiryukov, donmhico, audrasjb, birgire, mikeschroder.
No action taken yet
git: 80e2a20
svn: r48415
374 of 4634
Author
Jake Spurlock <[email protected]> 2020-07-10 00:59:58 +0000
Coding Standards: Some missed code formatting.
Unprops: whyisjake.
No action taken yet