38515 Commits

Author SHA1 Message Date
Jonathan Desrosiers
0f2641f73f WordPress 5.0.15.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@52495 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:45:20 +00:00
Jonathan Desrosiers
78ced475a0 Grouped backports to the 5.0 branch.
- Query: Improve sanitization within `WP_Tax_Query`.
- Query: Improve sanitization within `WP_Meta_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.

Merges [52454-52457] to the 5.0 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@52473 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:13:41 +00:00
Jonathan Desrosiers
d98a039f1a Block Editor: Additional package updates.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@51833 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-21 16:48:03 +00:00
Jonathan Desrosiers
52869da001 Grouped merges for 5.0.14.
Follow up to [51758].

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@51769 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 23:30:30 +00:00
Jonathan Desrosiers
fe952f0e1f WordPress 5.0.14.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@51766 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 21:41:53 +00:00
Jonathan Desrosiers
d82b6955d9 Grouped merges for 5.0.14.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.0 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@51758 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 21:22:31 +00:00
Peter Wilson
23b9483ac2 WordPress 5.0.13.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50876 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 23:16:10 +00:00
Peter Wilson
88c65aab6c External libraries: Improve attachment handling in PHPMailer
Props: audrasjb, ayeshrajans, desrosj, peterwilsoncc, xknown.
Partially merges [50799] to the 5.0 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50854 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 22:28:34 +00:00
Peter Wilson
63c477dbb8 Version bump for 5.0.12.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50743 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-15 01:36:45 +00:00
Jonathan Desrosiers
fdad53e8ae Grouped merges for 5.0.12.
* REST API: Allow authors to read their own password protected posts.
* About page update.

Merges [50717] to the 5.0 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50731 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-15 01:10:18 +00:00
Jonathan Desrosiers
85f99cf214 Build/Test Tools: Backport GitHub Action and build improvements to the 5.0 branch.
This backports several build and test tool improvements to the 5.0 branch. Most notably, this includes:

- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.

Merges [45317,50267,50379,50387,50413,50416,50432,50435-50436,50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598] to the 5.0 branch.
See #50401, #51801, #51802, #52548, #52608, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50624 602fd350-edb4-49c9-b593-d223f7449a82
2021-03-31 19:26:39 +00:00
Jonathan Desrosiers
31274c3342 Build/Test Tools: Remove unused test groups from the 5.0 branch.
Follow up to [50307].

See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50334 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 21:12:26 +00:00
Jonathan Desrosiers
9f87e92c21 Build/Test Tools: Restore automated testing in the 5.0 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.

In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.

Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 5.0 branch.
See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50307 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:25:20 +00:00
Jonathan Desrosiers
676c22e235 Build/Test Tools: Support NodeJS 14.x in the 5.0 branch.
This updates the 5.0 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.0, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin.
Merges [44233,44728,45321,45765,45826,46403-46404,46408,46409,47404,47867-47869,47872-47873,48705,49636,49933,49937,49939,49940,49983,49989,50017,50126,50176,50185,50192] to the 5.0 branch.
See #52341.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50201 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-05 04:03:45 +00:00
Sergey Biryukov
4b924e3341 Tests: Skip test_readme() if the HTTP request to secure.php.net or dev.mysql.com failed on timeout.
Move `skipTestOnTimeout()` to `WP_UnitTestCase_Base` to avoid duplication.

Merges [46682] and [46996] to the 5.0 branch.
See #51669.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@50095 602fd350-edb4-49c9-b593-d223f7449a82
2021-01-30 14:51:08 +00:00
Jonathan Desrosiers
d717a87e35 Build/Test Tools: Remove the TravisCI configuration file.
In [49162], GitHub Action workflow configuration files were introduced to run all of Core’s automated testing with the intent to fully transition after some time was allowed for testing.

After two full months of testing, the time to finish this transition has come.

We thank TravisCI for testing the codebase through nearly 20 major and many more minor releases.

Merges [49876] to the 5.0 branch.
See #52161. See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49883 602fd350-edb4-49c9-b593-d223f7449a82
2020-12-22 21:07:36 +00:00
Jonathan Desrosiers
34dfe45cb8 Build/Test Tools: Backport the local Docker environment to the 5.0 branch.
This commit introduces the Docker-based local WordPress development environment to the 5.0 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 5.0 branch.
See #48301, #47767.

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

See #50573, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49523 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:02:03 +00:00
Jonathan Desrosiers
83f29fe880 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 5.0 branch.
See #46073, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49518 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 16:46:12 +00:00
Jonathan Desrosiers
ba2d11db67 WordPress 5.0.11.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49414 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:33:42 +00:00
Jake Spurlock
f04772a072 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 5.0 branch.

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


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49396 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 18:50:55 +00:00
Jonathan Desrosiers
2579f5ca2f Build/Test Tools: Explicitly specify a version number in the .nvmrc file for the 5.0 branch.
This restores the ability to run NodeJS related tasks when using `nvm install` or `nvm use`.

The alias `lts/*` currently resolves to NodeJS 12.x (and will continue to change as newer versions are released). The 10.x version of NodeJS is the highest version supported in the 5.0 branch.

This also removes the explicit version when running `nvm install` during automated testing. The command will now fall back to the version in the `.nvmrc` file.

See #51603.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49277 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-22 16:09:43 +00:00
Sergey Biryukov
b00c8bf95e Tests: Temporarily skip PDF tests if they fail due to ImageMagick permission errors.
Merges [48338], [48341] to the 5.0 branch.

See #50573.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@48486 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-14 21:33:30 +00:00
Sergey Biryukov
99d5878ac9 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.0 branch.
Fixes #50392.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@48248 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-01 09:45:52 +00:00
Jonathan Desrosiers
cabad766c4 WordPress 5.0.10.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47993 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 21:31:46 +00:00
Jake Spurlock
e3356d8c96 Editor: Ensure latest comments can only be viewed from public posts.
This brings the changes from [47984] to the 5.0 branch.

Props: poena, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47988 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 19:31:08 +00:00
Jonathan Desrosiers
20545bea17 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.0 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47964 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 18:21:10 +00:00
Sergey Biryukov
8ad0d156a7 Update the About page for WordPress 5.0.9
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47701 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 18:35:57 +00:00
Jonathan Desrosiers
84fc2c3794 WordPress 5.0.9
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47670 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:55:35 +00:00
Jake Spurlock
e65e7a3bd9 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], [47636], [47637], and [47638] to the 5.0 branch.

Props: aduth, batmoo, ehti, ellatrix, jorgefilipecosta, nickdaugherty, noisysocks, pento, peterwilsoncc, sergeybiryukov, sstoqnov, talldanwp, westi, westonruter, whyisjake, whyisjake, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47647 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 16:13:02 +00:00
Sergey Biryukov
18cdae1f9d 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/5.0@47489 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 14:29:03 +00:00
Sergey Biryukov
a7b2a8d2fb Build/Test Tools: Move the PHP 7.3 Travis job in 5.0 branch after the JS tests, for consistency with other branches.
See #42387, #40407.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@47323 602fd350-edb4-49c9-b593-d223f7449a82
2020-02-19 13:32:18 +00:00
Sergey Biryukov
40a982bd62 WordPress 5.0.8
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46923 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 20:25:01 +00:00
Jake Spurlock
a31a90deb4 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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46915 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 18:51:11 +00:00
Jonathan Desrosiers
12be6cd7d0 WordPress 5.0.7.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46510 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 20:05:28 +00:00
Jake Spurlock
a44cc358e4 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/5.0@46492 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 18:26:01 +00:00
Jonathan Desrosiers
fad34f402d WordPress 5.0.6
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46063 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 23:53:38 +00:00
Jonathan Desrosiers
bfc270481d WordPress 5.0.5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46044 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 21:23:16 +00:00
Jake Spurlock
af4e78caae Update the block library to 2.2.17 to fix an issue with invalid shortcode blocks.
Props aduth, flaviozavan, epiqueras, jorgefilipecosta



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46029 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 21:13:51 +00:00
Andrew Ozz
626da457b1 jQuery: Backport the patch from jQuery 3.4.0.
Merges [45342] to the 5.0 branch.

Props MikeNGarrett, peterwilsoncc, azaozz.
Fixes #47020.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46017 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 18:38:27 +00:00
Jonathan Desrosiers
810fd45115 Fix for URL sanitization in wp_kses_bad_protocol_once().
Merges [45997] to the 5.0 branch.

Props irsdl, sstoqnov, whyisjake.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@46004 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 18:10:34 +00:00
Jake Spurlock
c59273ef15 Update the block library to 2.2.17 to fix an issue with invalid shortcode blocks.
Props aduth, flaviozavan, epiqueras



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

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

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@45974 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 17:04:15 +00:00
Jake Spurlock
8ff16f0bdd Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 5.0 branch.

Props vortfu, whyisjake, peterwilsoncc


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

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@45941 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 16:25:25 +00:00
John Blackbourn
6db8a5d8ac Build/Test tools: Further trimming of CI jobs on the 5.0 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.

See #42387


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@45005 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 16:22:15 +00:00
John Blackbourn
a494bb1dee 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.0 branch.

See #46632


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44995 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:54:59 +00:00
John Blackbourn
c3afc1069d Build/Test tools: Trim the test matrix on Travis in order to speed up the 5.0 branch build.
This removes the PHP 7.2, 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/5.0@44992 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:18:17 +00:00
Gary Pendergast
070b00cecb WordPress 5.0.4, undoing the incorrect version bump in [44862].
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44866 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 00:43:56 +00:00