35074 Commits

Author SHA1 Message Date
Jonathan Desrosiers
4ea9d6c4dc Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.

The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).

Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.

Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.

Merges [50473], [50704], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
David Baumwald
adaf7d2744 WordPress 4.6.23.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@52886 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 22:12:22 +00:00
Sergey Biryukov
703ae7a45b External Librairies: Update jQuery.query to version 2.2.3.
This updates the "jquery-query" library from version 2.1.7 to 2.2.3.

Props jorbin, peterwilsoncc, xknown, audrasjb, jorgefilipecosta.
Merges [52844] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@52860 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 21:32:26 +00:00
Jonathan Desrosiers
68194c12e7 WordPress 4.6.22.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@52499 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:46:04 +00:00
Jonathan Desrosiers
fdb98e45dd Grouped backports to the 4.6 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 4.6 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@52477 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:16:25 +00:00
Sergey Biryukov
5a324e5e97 Date/Time: Use delta comparison in get_gmt_from_date() tests to avoid race conditions.
Follow-up to [35284].

Props keesiemeijer.
Merges [41920] to the 4.6 branch.
See #38815.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@51614 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-15 13:38:32 +00:00
Peter Wilson
eb6a212cf5 WordPress 4.6.21.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50880 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 23:19:42 +00:00
Peter Wilson
ea81cfb3c1 External libraries: Improve attachment handling in PHPMailer
Props: audrasjb, ayeshrajans, desrosj, peterwilsoncc, xknown.
Partially merges [50799] to the 4.6 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50858 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 22:31:13 +00:00
Jonathan Desrosiers
d3604baa51 Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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 [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
Jonathan Desrosiers
87c2a14d06 Build/Test Tools: Remove unused test groups from the 4.6 branch.
Follow up to [50311].

See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50330 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 21:08:16 +00:00
Jonathan Desrosiers
8133797371 Build/Test Tools: Correct inline documentation for build matrix.
Follow up to [50311].

See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50312 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:54:01 +00:00
Jonathan Desrosiers
5b47a1f4e6 Build/Test Tools: Restore automated testing in the 4.6 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 4.6 branch.
See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
Jonathan Desrosiers
5ca758ae8a Build/Test Tools: Correct svn:mergeinfo for the 4.6 branch.
[49533] also merged [44176], [45445], and [49267], but these were missed in the commit message.

See #48301, #47767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50242 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-08 20:47:43 +00:00
Jonathan Desrosiers
81c21e8dfd Build/Test Tools: Ignore patch related files, so they can't be accidentally committed.
Merges [39360-39361] to the 4.6 branch.
See #38727.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50207 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-05 04:17:55 +00:00
Jonathan Desrosiers
f99e30b490 Build/Test Tools: Support NodeJS 14.x in the 4.6 branch.
This updates the 4.6 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.

This also replaces the `npm-shrinkwrap.json` with a `package-lock.json` file. Lock files were not supported in earlier versions of NPM, but can now be used.

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

Props desrosj, dd32, netweb, jorbin.
Merges [42460-42461,42463,42887,43320,43323,43977,44219,44233,44728,45321,45765,46404,46408-46409,47404,47867-47869,47872-47873,48705,49636,49933,49937,49939,50017,50126,50176,50185] to the 4.6 branch.
See #52341.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50206 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-05 04:16:55 +00:00
Sergey Biryukov
92ee7e12d6 Tests: Move skipTestOnTimeout() to a more appropriate location, for consistency with other branches.
Follow-up to [50088].

Merges [50097] to the 4.6 branch.
See #51669.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50098 602fd350-edb4-49c9-b593-d223f7449a82
2021-01-30 15:26:00 +00:00
Sergey Biryukov
70452d0e4a Tests: Use skipTestOnTimeout() in more HTTP tests.
Adjust it to handle more types of timeouts, e.g. "Resolving timed out", "Connection timed out".

Merges [38757], [43511], [43512], [46682], [46996] to the 4.6 branch.
See #51669.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50089 602fd350-edb4-49c9-b593-d223f7449a82
2021-01-30 11:45:38 +00:00
Jonathan Desrosiers
a70e33d3bc 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 4.6 branch.
See #52161. See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49887 602fd350-edb4-49c9-b593-d223f7449a82
2020-12-22 21:10:03 +00:00
Jake Spurlock
b3138758f7 Build/Test Tools: Match .nvmrc with the declared node engine.
Let's match up the versions from package.json, .travis.yml and .nvmrc.

This brings the changes from [49653] to the 4.6 branch.

Fixes #51682.

Props SergeyBiryukov, desrosj, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49656 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-18 22:48:55 +00:00
Jonathan Desrosiers
98fab8014a Build/Test Tools: Backport the local Docker environment to the 4.6 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.6 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.6 branch.
See #48301, #47767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49533 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:39:40 +00:00
Jonathan Desrosiers
31a2b8e688 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.6 branch.
See #46073, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49522 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 16:56:16 +00:00
Jonathan Desrosiers
38c0c6dc60 WordPress 4.6.20.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49418 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:33:59 +00:00
Jake Spurlock
69ad1bb1c9 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.6 branch.

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


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@49400 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 18:59:47 +00:00
Sergey Biryukov
c1c6d978ba 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.6 branch.
Fixes #50392.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@48252 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-01 09:48:22 +00:00
Jonathan Desrosiers
f4d2e067da WordPress 4.6.19.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47997 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 21:32:30 +00:00
Jake Spurlock
92d76485a1 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 4.6 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47974 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 18:42:10 +00:00
Sergey Biryukov
d71f76df75 Update the About page for WordPress 4.6.18
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47696 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 18:33:04 +00:00
Jonathan Desrosiers
386987b8ac WordPress 4.6.18
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47674 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:56:16 +00:00
Jake Spurlock
1dddf957f2 Cache API: Ensure proper escaping around the stats method in the cache API.
Brings the changes in [47637] to the 4.6 branch.

Props: nickdaugherty, batmoo, whyisjake, westi.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47655 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 16:45:01 +00:00
Jake Spurlock
e2b05084dc 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 [47634], [47635], [47637], and [47638] to the 4.6 branch.

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



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47651 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 16:24:40 +00:00
Sergey Biryukov
df4fc0b054 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.6@47489 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 14:29:03 +00:00
Sergey Biryukov
8ee6e319da Embeds: Remove the external oEmbed tests for YouTube.
These tests no longer test anything that WordPress core has control over. YouTube now serves everything
over HTTPS by default, so the tests for #23149 will always pass, and the tests for #32714 aren't testing
anything that core has control over.

Tests for the responses from oEmbed providers has been attempted and reverted in #32360.

Props johnbillion.
Merges [41712] to the 4.4 branch.
See #42076, #32714, #23149.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47483 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 13:57:09 +00:00
Sergey Biryukov
30988287b6 Embeds: Remove the external oEmbed tests for YouTube.
These tests no longer test anything that WordPress core has control over. YouTube now serves everything
over HTTPS by default, so the tests for #23149 will always pass, and the tests for #32714 aren't testing
anything that core has control over.

Tests for the responses from oEmbed providers has been attempted and reverted in #32360.

Props johnbillion.
Merges [41712] to the 4.6 branch.
See #42076, #32714, #23149.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47481 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 13:45:45 +00:00
Sergey Biryukov
193c53e174 WordPress 4.6.17
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46927 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 20:28:03 +00:00
Sergey Biryukov
14bb858ed3 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 4.6 branch.

Props: xknown, nickdaugherty, peterwilsoncc.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46914 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 18:45:47 +00:00
Jonathan Desrosiers
8bb669e037 WordPress 4.6.16.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46514 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 20:08:14 +00:00
Jake Spurlock
15315e51a4 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 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46496 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 19:01:10 +00:00
Jake Spurlock
d7a51ca010 Add .nvmrc files to older versions of WordPress
When jumping between branches, it would be nice to have the correct node version for the older versions of WordPress. Let's add .nvmrc files to these older branches for the supported versions.

Merges [46295] to the 4.6 branch.

Fixes #48140


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46298 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-25 20:55:32 +00:00
Jonathan Desrosiers
51966e8eef WordPress 4.6.15.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@46040 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 21:21:46 +00:00
Andrew Ozz
cf1c8c8c3b jQuery: Backport the patch from jQuery 3.4.0.
Merges [45342] to the 4.6 branch.

Props MikeNGarrett, peterwilsoncc, azaozz.
Fixes #47020.

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

Props irsdl, sstoqnov, whyisjake.

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

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

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

Props vortfu, whyisjake, peterwilsoncc


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

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

See #42387


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@45009 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 16:27:18 +00:00
John Blackbourn
ef1095679e 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.6 branch.

See #46632


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@44999 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-25 00:57:26 +00:00
Gary Pendergast
8a66e4659f WordPress 4.6.14
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@44874 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 01:17:55 +00:00
Sergey Biryukov
6de345d505 Formatting: Fix a PHP warning in introduced in [44839].
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@44864 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 00:34:42 +00:00
Sergey Biryukov
aa98e00bdb Comments: Improve comment content filtering.
Merges [44842] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@44848 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:36:59 +00:00