WordPress commits: wp-5.1 branch

git: d19abc9
svn: r48485
1 of 65
Author
Sergey Biryukov <[email protected]> 2020-07-14 21:32:44 +0000
Tests: Temporarily skip PDF tests if they fail due to ImageMagick permission errors.
Merges [48338], [48341] to the 5.1 branch.

See #50573.
No action taken yet
git: 64b298c
svn: r48247
2 of 65
Author
Sergey Biryukov <[email protected]> 2020-07-01 09:45:25 +0000
Administration: Pass the result of `set-screen-option` filter to the new `set_screen_option_{$option}` filter to ensure backward compatibility.
Rename the `$keep` parameter of both filters to `$screen_option` for clarity, update the documentation to better reflect its purpose.

Follow-up to [47951].

Props Chouby, sswells, SergeyBiryukov.
Merges [48241] to the 5.1 branch.
Fixes #50392.
Backported in 2e9252e
git: 396f69c
svn: r47992
3 of 65
Author
Jonathan Desrosiers <[email protected]> 2020-06-10 21:31:35 +0000
WordPress 5.1.6.
No action taken yet
git: a0a9d2b
svn: r47987
4 of 65
Author
Jake Spurlock <[email protected]> 2020-06-10 19:29:06 +0000
Editor: Ensure latest comments can only be viewed from public posts.
This brings the changes from [47984] to the 5.1 branch.

Props: poena, xknown.
No action taken yet
git: 4ffa316
svn: r47963
5 of 65
Author
Jonathan Desrosiers <[email protected]> 2020-06-10 18:18:25 +0000
General: Backport several commits for release.
- Embeds: Ensure that the title attribute is set correctly on embeds.
- Editor: Prevent HTML decoding on by setting the proper editor context.
- Formatting: Ensure that wp_validate_redirect() sanitizes a wider variety of characters.
- Themes: Ensure a broken theme name is returned properly.
- Administration: Add a new filter to extend set-screen-option. 

Merges [47947-47951] to the 5.1 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.
Backported in e42a387
git: daa8895
svn: r47918
6 of 65
Author
Sergey Biryukov <[email protected]> 2020-06-06 10:07:01 +0000
Comments: Ensure that unmoderated comments won't be search indexed.
After a comment is submitted, only allow a brief window where the comment is live on the site.

Props jonkolbert, ayeshrajans, Asif2BD, peterwilsoncc, imath, audrasjb, jonoaldersonwp, whyisjake, SergeyBiryukov.
Merges [47887] and [47889] to the 5.1 branch.
Fixes #49956.
No action taken yet
git: 3e2ac5f
svn: r47703
7 of 65
Author
Sergey Biryukov <[email protected]> 2020-04-29 18:37:53 +0000
Update the About page for WordPress 5.1.5
No action taken yet
git: 2560885
svn: r47669
8 of 65
Author
Jonathan Desrosiers <[email protected]> 2020-04-29 17:55:18 +0000
WordPress 5.1.5
No action taken yet
git: 372eb13
svn: r47646
9 of 65
Author
Jake Spurlock <[email protected]> 2020-04-29 16:06:55 +0000
Customize: Add additional filters to Customizer to prevent JSON corruption.
User: Invalidate `user_activation_key` on password update.
Query: Ensure that only a single post can be returned on date/time based queries.
Block Editor: Coding standards, properly escape class names.
Cache API: Ensure proper escaping around the stats method in the cache API.
Formatting: Expand `sanitize_file_name` to have better support for utf8 characters.

Brings the changes in [47633], [47634], [47635], [47636], [47637], and [47638] to the 5.1 branch.

Props: aduth, batmoo, ehti, ellatrix, jorgefilipecosta, nickdaugherty, noisysocks, pento, peterwilsoncc, sergeybiryukov, sstoqnov, talldanwp, westi, westonruter, whyisjake, whyisjake, xknown.
No action taken yet
git: a879500
svn: r47489
10 of 65
Author
Sergey Biryukov <[email protected]> 2020-03-22 14:29:03 +0000
Build/Test Tools: Remove unused `::assertPostHasTerms()` method from `tests/term.php`.
The associated test was removed in [30241].

Merges [47341] to 3.7+ branches.
See #49485.
Backported in e14e723
git: 7dabc9e
svn: r47337
11 of 65
Author
Sergey Biryukov <[email protected]> 2020-02-21 10:46:53 +0000
Build/Test Tools: Display PHPUnit information for PHP tests only (for 5.1 branch).
This avoids a build error on `travis:format` job, caused by Travis running PHPUnit 9.x by default, which requires PHP 7.3+.

Merges [47336] to the 5.1 branch.
See #49485.
No action taken yet
git: 00a2dbe
svn: r47322
12 of 65
Author
Sergey Biryukov <[email protected]> 2020-02-19 13:31:53 +0000
Build/Test Tools: Trim the test matrix on Travis in order to speed up the 5.1 branch build.
This removes the PHP 7.2, 7.1, 5.5, 5.4, and 5.3 jobs.

This also removes the PHP 5.6 job which runs without an object cache in place as the likelihood of a change being backported that only breaks 5.6 environments without an object cache is small.

Merges [44992] and [45005] to the 5.1 branch.
See #42387, #40407.
No action taken yet
git: 80fd7c9
svn: r47321
13 of 65
Author
Sergey Biryukov <[email protected]> 2020-02-19 05:13:08 +0000
Tests: Correct assertions in `test_site_dates_are_gmt()`.
`assertSame()` doesn't have the `$delta` parameter, only `assertEquals()` does.

Follow-up to [47313].

Merges [47318] to the 5.1 branch.
See #40364.
No action taken yet
git: c3011a9
svn: r47316
14 of 65
Author
Sergey Biryukov <[email protected]> 2020-02-19 02:57:05 +0000
Tests: Use delta comparison in `test_site_dates_are_gmt()` to avoid race conditions.
Merges [47313] to the 5.1 branch.
See #40364.
No action taken yet
git: b6a2c29
svn: r46922
15 of 65
Author
Sergey Biryukov <[email protected]> 2019-12-12 20:24:13 +0000
WordPress 5.1.4
No action taken yet
git: 964aebc
svn: r46919
16 of 65
Author
Sergey Biryukov <[email protected]> 2019-12-12 19:48:57 +0000
Formatting: Use `wp_list_pluck()` instead of `array_column()` in `wp_targeted_link_rel_callback()`.
`array_column()` requires PHP >= 5.5.

Follow-up to [46894].
No action taken yet
git: 57715e4
svn: r46907
17 of 65
Author
Jake Spurlock <[email protected]> 2019-12-12 18:36:20 +0000
Ensure that a user can publish_posts before making a post sticky.
Props: danielbachhuber, whyisjake, peterwilson, xknown.
Prevent  stored XSS through wp_targeted_link_rel().
Props: vortfu, whyisjake, peterwilsoncc, xknown,  SergeyBiryukov, flaviozavan.
Update wp_kses_bad_protocol() to recognize &colon; on uri attributes,
wp_kses_bad_protocol() makes sure to validate that uri attributes don't contain invalid/or not allowed protocols. While this works fine in most cases, there's a risk that by using the colon html5 named entity, one is able to bypass this function.
Brings r46895 to the 5.3 branch.
Props: xknown, nickdaugherty, peterwilsoncc.
Prevent stored XSS in the block editor.
Brings r46896 to the 5.3 branch.
Prevent escaped unicode characters become unescaped in unsafe HTML during JSON decoding.
Props: aduth, epiqueras.
No action taken yet
git: 4de9aac
svn: r46541
18 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-10-14 22:04:47 +0000
Coding Standards: Fix indentation issues introduced in [46509].
No action taken yet
git: b2b1e5f
svn: r46509
19 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-10-14 20:04:46 +0000
WordPress 5.1.3
No action taken yet
git: 2e4cbf5
svn: r46491
20 of 65
Author
Jake Spurlock <[email protected]> 2019-10-14 18:18:13 +0000
Backports [46474], [46475], [46476], [46477], [46478], [46483], [46485] to the 5.1 branch.
No action taken yet
git: 4ea459d
svn: r46490
21 of 65
Author
Jake Spurlock <[email protected]> 2019-10-14 18:16:02 +0000
Backporting several bug fixes.
- Query: Remove the static query property.
- HTTP API: Protect against hex interpretation.
- Filesystem API: Prevent directory travelersals when creating new folders.
- Administration: Ensure that admin referer nonce is valid.
- REST API: Send a Vary: Origin header on GET requests.

Backports [46474], [46475], [46476], [46477], [46478], [46483], [46485] to the 5.1 branch.
Backported in 30c498e
git: 9c10c15
svn: r46407
22 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-10-05 17:06:02 +0000
Build/Test Tools: Remove PHP nightly build from Travis for 5.1 branch.
See #48225.
No action taken yet
git: 59b8d97
svn: r46045
23 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-09-04 21:25:07 +0000
WordPress 5.1.2.
No action taken yet
git: 42565e6
svn: r46030
24 of 65
Author
Jake Spurlock <[email protected]> 2019-09-04 21:15:59 +0000
Update the block library to 2.2.17 to fix an issue with invalid shortcode blocks.
Props aduth, flaviozavan, epiqueras, jorgefilipecosta
No action taken yet
git: 6605763
svn: r46024
25 of 65
Author
Sergey Biryukov <[email protected]> 2019-09-04 18:43:07 +0000
Coding Standards: Fix WPCS issue in [45990].
Merges [46019] to the 5.1 branch.
No action taken yet
git: 9c76dcb
svn: r46014
26 of 65
Author
Andrew Ozz <[email protected]> 2019-09-04 18:35:42 +0000
jQuery: bring jquery.js back into the WordPress SVN repo and backport the patch from 3.4.0.
Merges [45342] to the 5.1 branch.

Props MikeNGarrett, peterwilsoncc, azaozz.
Fixes #47020.
Backported in 84968d9
git: 19a8957
svn: r46002
27 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-09-04 18:00:59 +0000
Fix for URL sanitization in `wp_kses_bad_protocol_once()`.
Merges [45997] to the 5.1 branch.

Props irsdl, sstoqnov, whyisjake.
Backported in 489488a
git: 678aa83
svn: r45992
28 of 65
Author
Sergey Biryukov <[email protected]> 2019-09-04 17:40:11 +0000
Improve handling the existing `rel` attribute in `wp_rel_nofollow_callback()`.
Merges [45990] to the 5.1 branch.
Props xknown, sstoqnov.
Backported in 7b5700b
git: fcd92ff
svn: r45973
29 of 65
Author
Sergey Biryukov <[email protected]> 2019-09-04 16:58:39 +0000
Improve URL validation in `wp_validate_redirect()`.
Merges [45971] to the 5.1 branch.
Props vortfu, whyisjake, peterwilsoncc.
Backported in 8382dd5
git: df38632
svn: r45940
30 of 65
Author
Jake Spurlock <[email protected]> 2019-09-04 16:20:37 +0000
Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 5.1 branch.

Props vortfu, whyisjake, peterwilsoncc
Backported in df914e5
git: bf34d82
svn: r45939
31 of 65
Author
Sergey Biryukov <[email protected]> 2019-09-04 16:17:53 +0000
Escape the output in `wp_ajax_upload_attachment()`.
Merges [45936] to the 5.1 branch.
Props whyisjake, sstoqnov.
Backported in 1c174bc
git: eaa0d5b
svn: r44994
32 of 65
Author
John Blackbourn <[email protected]> 2019-03-25 00:53:58 +0000
Build/Test tools: Switch npm dependency caching strategy on Travis CI.
This switches to caching npm's local cache instead of `node_modules` in order to prevent issues caused by modules compiled using a different version of node.

Merges [44993] into the 5.1 branch.

See #46632
No action taken yet
git: 3c2d00d
svn: r44985
33 of 65
Author
Gary Pendergast <[email protected]rg> 2019-03-23 03:36:10 +0000
Admin: Revert [44984].
That was supposed to go into `trunk`, not the 5.1 branch.

See #46573.
No action taken yet
git: bef9b91
svn: r44984
34 of 65
Author
Gary Pendergast <[email protected]> 2019-03-23 03:17:14 +0000
Admin: Introduce the Site Health screens.
The Site Health tool serves two purposes:
- Provide site owners with information to improve the performance, reliability, and security of their site.
- Collect comprehensive debug information about the site.

By encouraging site owners to maintain their site and adhere to modern best practices, we ultimately improve the software hygeine of both the WordPress ecosystem, and the open internet as a whole.

Props Clorith, hedgefield, melchoyce, xkon, karmatosed, jordesign, earnjam, ianbelanger, wpscholar, desrosj, pedromendonca, peterbooker, jcastaneda, garyj, soean, pento, timothyblynjacobs, zodiac1978, dgroddick, garrett-eclipse, netweb, tobifjellner, pixolin, afercia, joedolson, birgire.
See #46573.
No action taken yet
git: c29015f
svn: r44928
35 of 65
Author
Felix Arntz <[email protected]> 2019-03-18 16:20:53 +0000
Multisite: Do not prime site meta caches unless necessary.
Merges [44926] to the 5.1 branch.

Props spacedmonkey.
Fixes #46357. See #46167.
No action taken yet
git: de65eac
svn: r44927
36 of 65
Author
Felix Arntz <[email protected]> 2019-03-18 16:19:27 +0000
Multisite: Ensure site meta caches are not primed unless the `wp_blogmeta` table is available.
Prior to this change, querying sites early in the bootstrap process could potentially cause a fatal error, since at that stage the filter to bail on updating site meta cache if the respective database table has not been installed yet is not hooked in yet. This changeset forces the filter to be added if that is not already the case.

Merges [44925] to the 5.1 branch.

Props spacedmonkey.
Fixes #46167.
No action taken yet
git: 688b855
svn: r44860
37 of 65
Author
Gary Pendergast <[email protected]> 2019-03-13 00:16:04 +0000
WordPress 5.1.1
No action taken yet
git: 8df47ff
svn: r44859
38 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-12 22:56:44 +0000
PHPCS: Fix errors introduced in [44833].
Merges [44858] to the 5.1 branch.
No action taken yet
git: 67a2a6f
svn: r44843
39 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-12 22:31:55 +0000
Comments: Improve comment content filtering.
Merges [44842] to the 5.1 branch.
Backported in 1a6e216
git: 7206b55
svn: r44834
40 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-12 22:15:37 +0000
Formatting: Improve `rel="nofollow"` handling in comments.
Merges [44833] to the 5.1 branch.
Backported in d949ee8
git: 6d22ce6
svn: r44831
41 of 65
Author
Aaron Jorbin <[email protected]> 2019-03-12 17:12:22 +0000
General: Add missing @since annotation for wp_get_direct_php_update_url().
Backports [44829] to 5.1 branch. Dev-reviewed by desrosj and SergeyBiryukov.

Missed in [44815].

Props birgire.
See #46074.
No action taken yet
git: 68fa2f4
svn: r44820
42 of 65
Author
Gary Pendergast <[email protected]> 2019-03-08 00:29:18 +0000
WordPress 5.1.1 RC1 post release version bump.
No action taken yet
git: 3c91f92
svn: r44819
43 of 65
Author
Gary Pendergast <[email protected]> 2019-03-08 00:12:51 +0000
WordPress 5.1.1 RC1.
No action taken yet
git: 057d0fb
svn: r44817
44 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-03-07 22:34:03 +0000
Widgets: Remove `change` event when editing a Custom HTML widget.
The `change` event was previously required to ensure that the Customizer picked detected changes to the widget's content and synced them to the preview. In the current state, though, the `trigger( 'change' )` is no longer required and is causing issues with the widget's “Done” and “Save” buttons.

Merges [44816] to the 5.1 branch.

Fixes #46335.
Props audrasjb, afercia, westonruter.
No action taken yet
git: 85076ad
svn: r44815
45 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-03-07 21:36:22 +0000
General: Add a way to specify a direct link for a user to update PHP.
A direct URL to where a user can update PHP for their website can now be specified in one of two ways:

- Defining the `WP_DIRECT_UPDATE_PHP_URL` environment variable.
- Returning a URL to the `wp_direct_php_update_url` filter.

When a URL is specified, an additional “Update PHP” button will be displayed at the bottom of the Core dashboard widget informing administrators that their site is running an outdated version of PHP (see [42832]).

Merges [44814] to the 5.1 branch.

Fixes #46074.
Props afragen, desrosj, lukecarbis.
No action taken yet
git: cd010b4
svn: r44807
46 of 65
Author
Jeremy Felt <[email protected]> 2019-03-07 04:36:36 +0000
Multisite: Ensure `wpmu_new_blog` hook receives expected data in `$meta`.
Restores `public`, `archived`, `mature`, `spam`, `deleted`, `lang_id`, and `WPLANG` to the `$meta` data passed to `wpmu_new_blog`. This hook was deprecated in 5.1.0, but code using it still relies on this data.

Props davidbinda, pbiron.
Merges [44805] and [44806] to the 5.1 branch.
Fixes #46351.
No action taken yet
git: 9042c9d
svn: r44802
47 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-05 21:02:47 +0000
Menus: After [42857], apply background to the correct elements on Menus screen.
Props audrasjb, afercia, mukesh27, garrett-eclipse.
Merges [44801] to the 5.1 branch.
Fixes #46368.
No action taken yet
git: b57deec
svn: r44800
48 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-05 20:36:28 +0000
Networks and Sites: Check the result of `get_site()` in `wp_insert_site()`.
Props davidbinda, vanyukov, lukecarbis.
Merges [44799] to the 5.1 branch.
Fixes #46300.
No action taken yet
git: 0b63929
svn: r44798
49 of 65
Author
Sergey Biryukov <[email protected]> 2019-03-05 20:29:19 +0000
I18N: Remove trailing spaces from translatable strings introduced in [43436].
Props dimadin.
Merges [44797] to the 5.1 branch.
Fixes #46277.
No action taken yet
git: 8f8b1c9
svn: r44795
50 of 65
Author
Peter Wilson <[email protected]> 2019-03-05 02:13:25 +0000
Comments: Allow for `comment-reply.js` to be loaded in the HTML header.
Allows for themes or plugins setting the comment-reply JavaScript as a dependency of an HTML header script. This in turn causes `comment-reply.js` to be loaded early, requiring execution to be delayed.

Props pento, peterwilsoncc, jorbin for feedback.
Merges [44794] to the 5.1 branch.
Fixes #46280.
No action taken yet
git: 11b3b4b
svn: r44789
51 of 65
Author
Felix Arntz <[email protected]> 2019-03-04 21:22:30 +0000
General: Introduce `wp_is_php_version_acceptable` filter to make the check for triggering PHP version warnings stricter.
The filter is only run if the wordpress.org API considers the PHP version acceptable. This ensures that other plugins or hosting providers can only make this check stricter, but not loosen it.

Merges [44788] to the 5.1 branch.

Props j-falk, mikeschroder.
Fixes #46065.
No action taken yet
git: c6cd9f8
svn: r44783
52 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-02-28 21:55:15 +0000
Build: Minify images
After `grunt-contrib-imagemin` was upgraded in WordPress 5.0, the `grunt precommit:image` task results in further minifications to `loading.gif`.

Merges [44768] to the 5.1 branch.

Fixes #46295.
No action taken yet
git: 984f2b6
svn: r44770
53 of 65
Author
Jonathan Desrosiers <[email protected]> 2019-02-26 16:23:45 +0000
Help/About: Fix mismatched opening/closing tags.
The 5.1 About page contains some invalid HTML markup.

Props bulletdigital.

Merges [44769] to the 5.1 branch.

Fixes #46319.
No action taken yet
git: ae3d09e
svn: r44766
54 of 65
Author
Gary Pendergast <[email protected]> 2019-02-21 22:54:01 +0000
Bump version to 5.1.1-alpha.
No action taken yet
git: eb6a461
svn: r44764
55 of 65
Author
Gary Pendergast <[email protected]> 2019-02-21 22:06:06 +0000
WordPress 5.1! 🕺🏻
No action taken yet
git: 13feabc
svn: r44763
56 of 65
Author
Aaron Jorbin <[email protected]> 2019-02-21 21:21:24 +0000
Script Loader: Load fakejshint as jshint due to "good and evil".
Backports [44762] from trunk to 5.1. Devreviewed by Pento.

Originally fixed in [42547]. Broken in [44163]. We've been here before. I recognize that tree.

Fixes #46299
No action taken yet
git: 7a13795
svn: r44761
57 of 65
Author
Gary Pendergast <[email protected]> 2019-02-21 04:36:10 +0000
Upgrades: Update `$_old_files` for WordPress 5.1.
`wp-includes/random_compat/random_bytes_openssl.php` was removed in [43130], this commit updates `$_old_files` to match.

Merges [44760] to the 5.1 branch.

Fixes #46284.
No action taken yet
git: aeee7ac
svn: r44754
58 of 65
Author
Gary Pendergast <[email protected]> 2019-02-19 02:57:05 +0000
Post WordPress 5.1 RC2 version bump.
No action taken yet
git: f7fc6a5
svn: r44753
59 of 65
Author
Gary Pendergast <[email protected]> 2019-02-19 02:43:54 +0000
WordPress 5.1 RC2.
No action taken yet
git: 3f8c9c8
svn: r44752
60 of 65
Author
Gary Pendergast <[email protected]> 2019-02-19 02:01:27 +0000
Admin: Update the About page design to match mockups.
This commit also moves the images to s.w.org, removes the old "Gutenberg has been deactivated" warning, as well as removing some old JS from About pages of years gone past.

Merges [44749] to the 5.1 branch.

Props melchoyce, ryelle, paaljoachim, karmatosed, pento.
Fixes #46161.
No action taken yet
git: bd559de
svn: r44751
61 of 65
Author
Gary Pendergast <[email protected]> 2019-02-19 02:00:21 +0000
Comments: Fix backward compatibility regressions in comment reply JavaScript.
Adds a `MutationObserver` to `comment-reply.js` to allow for lazy-loaded comments to continue working without the need to re-initialize the comment form.

Merges [44748] to the 5.1 branch.

Fixes #46260.
No action taken yet
git: 6738477
svn: r44750
62 of 65
Author
Gary Pendergast <[email protected]> 2019-02-19 01:58:51 +0000
Accessibility: Fix a regression in the old media modal pagination links.
[43019] improved the table pagination link styling, but introduced a regression in the old media dialog.

Merges [44747] to the 5.1 branch.

Props afercia, joneiseman.
Fixes #41858.
No action taken yet
git: ccb5b50
svn: r44745
63 of 65
Author
Peter Wilson <[email protected]> 2019-02-14 00:47:21 +0000
Build: Fix formatting issues introduced in [44740].
Merges [44744] to the 5.1 branch.
See #46218.
No action taken yet
git: 48e25b3
svn: r44743
64 of 65
Author
Peter Wilson <[email protected]> 2019-02-14 00:25:41 +0000
Twenty Nineteen: Revert [44739] from the 5.1 branch.
Reverts block quote style changes intended for a later release.

See #46239.
No action taken yet
git: 5546201
svn: r44741
65 of 65
Author
Peter Wilson <[email protected]> 2019-02-14 00:09:47 +0000
Branch 5.1.
No action taken yet
© 2020 ClassicPress