38170 Commits

Author SHA1 Message Date
Jonathan Desrosiers
faac54e8d0 Build/Test Tools: Backport the local Docker environment to the 4.9 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.9 branch and converts the Travis test jobs to utilize this environment for easier and more consistent testing.

Until existing blockers with the PHP 5.2 Docker container can be solved, the PHP 5.2 test job will remain using the Travis `precise` image.

Merges [45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49335,49358,49360,49362] to the 4.9 branch.
See #48301, #47767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49530 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:32:00 +00:00
Jonathan Desrosiers
4608a20874 Tests: Fix an incorrect variable name in PDF tests.
This causes a PHP error when running the test suite with PDF rendering supported.

Merges [49523] to the 4.9 branch.
See #50573, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49524 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:03:57 +00:00
Jonathan Desrosiers
961e090404 Media: Improve and fix rotate/flip image tests.
Fix off-by-one error in pixel color checks for rotate and flip image tests. Change to using PNG with single pixel to ensure that errors are caught in the future, rather than lost in JPEG noise.

Props Fuegas, mikeschroder.
Merges [45067] to the 4.9 branch.
See #46073, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49519 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 16:48:28 +00:00
Jonathan Desrosiers
2e8c2d9fa5 WordPress 4.9.16.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49415 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:33:47 +00:00
Jake Spurlock
5cc8ee9838 General: WordPress updates
* XML-RPC: Improve error messages for unprivileged users.
* External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
* Embeds: Disable embeds on deactivated Multisite sites.
* Coding standards: Modify escaping functions to avoid potential false positives.
* XML-RPC: Return error message if attachment ID is incorrect.
* Upgrade/install: Improve logic check when determining installation status.
* Meta: Sanitize meta key before checking protection status.
* Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.

Brings the changes from [49380,49382-49388] to the 4.9 branch.

Props xknown, zieladam, peterwilsoncc, whyisjake, desrosj, dd32.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49397 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 18:52:29 +00:00
Sergey Biryukov
62bccb1619 Tests: Temporarily skip PDF tests if they fail due to ImageMagick permission errors.
Merges [48338], [48341] to the 4.9 branch.

See #50573.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@48487 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-14 21:47:31 +00:00
Sergey Biryukov
f6af1ab2ef 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 4.9 branch.
Fixes #50392.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@48249 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-01 09:46:52 +00:00
Jonathan Desrosiers
e35f8b6923 WordPress 4.9.15.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47994 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 21:31:53 +00:00
Jonathan Desrosiers
aa08e63c74 General: Backport several commits for release.
- 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 [47948-47951] to the 4.9  branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47967 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 18:26:13 +00:00
Sergey Biryukov
15e1189eac Update the About page for WordPress 4.9.14
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47700 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 18:35:19 +00:00
Jonathan Desrosiers
44f42b827f WordPress 4.9.14
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47671 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:55:44 +00:00
Jake Spurlock
28a08a15c1 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.
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], [47637], and [47638] to the 4.9 branch.

Props: batmoo, ehti, nickdaugherty, peterwilsoncc, sergeybiryukov, sstoqnov, westi, westonruter, whyisjake, whyisjake, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47648 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 16:15:39 +00:00
Sergey Biryukov
c089cc014b 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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@47489 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 14:29:03 +00:00
Sergey Biryukov
8a8908a331 WordPress 4.9.13
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46924 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 20:26:00 +00:00
Sergey Biryukov
e90e97b041 Ensure that a user can publish_posts before making a post sticky.
Props: danielbachhuber, whyisjake, peterwilson, xknown.

Brings r46893 to the 4.9 branch.

Update `wp_kses_bad_protocol()` to recognize `:` 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 4.9 branch.

Props: xknown, nickdaugherty, peterwilsoncc.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46918 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 18:56:36 +00:00
Jonathan Desrosiers
23f8b4b28a WordPress 4.9.12.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46511 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 20:06:08 +00:00
Jake Spurlock
2a6c470de6 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.0 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46493 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 18:38:34 +00:00
Jake Spurlock
c382852061 Add .nvmrc files to older versions of WordPress
Fixes #48140.
Props whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46295 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-25 20:43:44 +00:00
Jonathan Desrosiers
9ad10b8508 WordPress 4.9.11.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46043 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 21:22:43 +00:00
Andrew Ozz
9fc057ce42 jQuery: Backport the patch from jQuery 3.4.0.
Merges [45342] to the 4.9 branch.

Props MikeNGarrett, peterwilsoncc, azaozz.
Fixes #47020.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46020 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 18:40:23 +00:00
Jonathan Desrosiers
f78242362b Fix for URL sanitization in wp_kses_bad_protocol_once().
Merges [45997] to the 4.9 branch.

Props irsdl, sstoqnov, whyisjake.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@46005 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 18:13:55 +00:00
Sergey Biryukov
4daf6f4603 Improve handling the existing rel attribute in wp_rel_nofollow_callback().
Merges [45990] to the 4.9 branch.
Props xknown, sstoqnov.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@45994 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 17:47:09 +00:00
Sergey Biryukov
373c697c5a Improve URL validation in wp_validate_redirect().
Merges [45971] to the 4.9 branch.
Props vortfu, whyisjake, peterwilsoncc.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@45975 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 17:07:33 +00:00
Jake Spurlock
10d96ecee9 Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 4.9 branch.

Props vortfu, whyisjake, peterwilsoncc


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@45946 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 16:34:47 +00:00
Sergey Biryukov
88ae167b4a Escape the output in wp_ajax_upload_attachment().
Merges [45936] to the 4.9 branch.
Props whyisjake, sstoqnov.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@45943 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 16:28:49 +00:00
John Blackbourn
92a1d1fc34 Build/Test tools: Further trimming of CI jobs on the 4.9 branch.
This 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 [45005] into the 4.9 branch.

See #42387


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@45006 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 16:24:44 +00:00
John Blackbourn
029815ff15 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 4.9 branch.

See #46632


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44996 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:55:39 +00:00
John Blackbourn
ab2485471b Build/Test tools: Trim the test matrix on Travis in order to speed up the 4.9 branch build.
This removes the PHP 7.1, 7.0, 5.5, 5.4, 5.3, and nightly jobs.

See #42387, #40407


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44991 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:15:10 +00:00
Gary Pendergast
b0437c4315 WordPress 4.9.10
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44868 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 00:57:18 +00:00
Sergey Biryukov
3e858faef3 Comments: Improve comment content filtering.
Merges [44842] to the 4.9 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44845 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:34:00 +00:00
Sergey Biryukov
765262a5c7 Formatting: Improve rel="nofollow" handling in comments.
Merges [44833] to the 4.9 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44836 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:18:57 +00:00
Gary Pendergast
ab0ef78c40 Dashboard: Remove the Try Gutenberg callout.
Merge of [43807] from the 5.0 branch.

Props mukesh27.
Fixes #45063.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44106 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 09:06:20 +00:00
Jeremy Felt
e908aa365b Bump 4.9 branch to version 4.9.9.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44078 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 02:10:55 +00:00
Gary Pendergast
fb09f6d175 Editor: Remove unwanted fields before saving posts.
The `meta_input`, `file`, and `guid` fields are not intended to be updated through user input.

Merges [44047] to the 4.9 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44053 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:37:30 +00:00
Peter Wilson
07c82a286b Multisite: Validate activation links.
Merges [44048] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44051 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:32:07 +00:00
Peter Wilson
7a7e1ad9d6 Multisite: Improve messaging for previously activated users.
Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time.

Merges [44021] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44024 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 00:33:05 +00:00
Ian Dunn
17759410bd KSES: Make the URI attributes DRY.
This commit introduces the `wp_kses_uri_attributes` function and filter. The function centralizes the list of attributes, in order to prevent inconsistency, and the filter provides a way for plugins to customize the attributes.

Merges [44014] and [44017] to the `4.9` branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@44020 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 00:13:03 +00:00
Gary Pendergast
4a807b3c7f KSES: Conditionally remove the <form> element from $allowedposttags.
To avoid backwards compatibility issues, `<form>` is re-added if a custom filter has added the `<input>` or `<select>` elements to `$allowedposttags`.

Merges [43994] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43997 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:16:14 +00:00
Jeremy Felt
ff58a699f0 Media: Improve verification of MIME file types.
Merges [43988] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43989 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:02:11 +00:00
Peter Wilson
05d99073da Media: Revert [43602] from the 4.9 branch.
Reverts changes to the "Edit more details" link in the attachment details modal.

This is out of scope for 4.9.9 and will be re-introduced in 5.0.0.

Fixes #44620.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43948 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-29 21:20:40 +00:00
Sergey Biryukov
c0c6c7ab09 REST API: Revert [43648] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #40510.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43715 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 07:15:22 +00:00
Sergey Biryukov
ad319d3c85 Taxonomy: Revert [43620] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44872.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43711 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 04:41:28 +00:00
Sergey Biryukov
50b9728d6a Privacy: Revert [43624] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44685.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43708 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 04:22:05 +00:00
Sergey Biryukov
69b6690178 Posts, Post Types: Revert [43617] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #34706.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43707 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 04:17:00 +00:00
Sergey Biryukov
faee134538 Privacy: Revert [43614] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #43985.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43705 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 04:03:23 +00:00
Sergey Biryukov
0243b1ce57 Customize: Revert [43619] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44809.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43702 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 03:52:44 +00:00
Sergey Biryukov
58fbc2a852 Customize: Revert [43611] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44770.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43701 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 03:47:44 +00:00
Sergey Biryukov
d296dc89f5 Customize: Revert [43575] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44763.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43699 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 03:40:50 +00:00
Sergey Biryukov
a7b3d4a30e Twenty Sixteen: Revert [43607] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.1.x.

See #44668.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43698 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 03:29:54 +00:00
Boone Gorges
5d8518a26a Revert [43632] from the 4.9 branch.
These new hooks are not part of the 4.9.x scope, and will be reintroduced
as part of 5.0.x.

See #44733.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43690 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 18:17:32 +00:00