Commit Graph

25935 Commits

Author SHA1 Message Date
Sergey Biryukov
997dd0e0c8 WordPress 3.9.36.
Built from https://develop.svn.wordpress.org/branches/3.9@52882


git-svn-id: http://core.svn.wordpress.org/branches/3.9@52471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:09:41 +00:00
Sergey Biryukov
66743ad4a3 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 3.9 branch.
Built from https://develop.svn.wordpress.org/branches/3.9@52867


git-svn-id: http://core.svn.wordpress.org/branches/3.9@52456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 21:51:33 +00:00
desrosj
e635f703f1 WordPress 3.9.35.
Built from https://develop.svn.wordpress.org/branches/3.9@52506


git-svn-id: http://core.svn.wordpress.org/branches/3.9@52098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:57:34 +00:00
desrosj
42d50b9cc7 Grouped backports to the 3.9 branch.
- Query: Improve sanitization within `WP_Tax_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.

Merges [52454,52456-52457] to the 3.9 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/3.9@52484


git-svn-id: http://core.svn.wordpress.org/branches/3.9@52076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:26:33 +00:00
Peter Wilson
175a54e643 WordPress 3.9.34.
Built from https://develop.svn.wordpress.org/branches/3.9@50887


git-svn-id: http://core.svn.wordpress.org/branches/3.9@50496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:25:15 +00:00
Peter Wilson
709d349c8d External libraries: Improve attachment handling in PHPMailer
Props: audrasjb, ayeshrajans, desrosj, peterwilsoncc, xknown.
Partially merges [50799] to the 3.9 branch.


Built from https://develop.svn.wordpress.org/branches/3.9@50865


git-svn-id: http://core.svn.wordpress.org/branches/3.9@50474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 22:36:32 +00:00
desrosj
d00bf5ee24 Build/Test Tools: Backport GitHub Action and build improvements to the 3.9 branch.
This backports several build and test tool improvements to the 3.9 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-50487,50545,50590] to the 3.9 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
Built from https://develop.svn.wordpress.org/branches/3.9@50645


git-svn-id: http://core.svn.wordpress.org/branches/3.9@50257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-02 16:05:17 +00:00
desrosj
0ae050a6c6 Build/Test Tools: Support NodeJS 14.x in the 3.9 branch.
This updates the 3.9 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.

Because older branches use (really) old versions of NodeJS, the local Docker environment cannot be backported since the needed dependencies will not run on these older versions (see #48301). This also blocks the ability to move automated testing over to GitHub Actions (see #50401).

This change also introduces a `packager-lock.json` file to the branch.

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

Props desrosj, dd32, netweb, jorbin.
Merges [28695,28796,28821,29270,29505,29858-30059,30061-30063,30066-30067,31425,31504,31557,31648-31650,32356-32357,32988,33726,35363,35513,35521,35538-35541,35859,36861-36865,37017,37019,37020,37212,37612,38111,39110,39113,39115-39117,39478,41835,42460-42461,42463,42887,43320,43323,43977,44219,44233,45321,45765,46404,46408-46409,47404,47867,47872-47873,48705,49636,49933,49937,49939,50126,50176,50185] to the 3.9 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/3.9@50220


git-svn-id: http://core.svn.wordpress.org/branches/3.9@49886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 04:40:29 +00:00
desrosj
52f7b371de WordPress 3.9.33.
Built from https://develop.svn.wordpress.org/branches/3.9@49425


git-svn-id: http://core.svn.wordpress.org/branches/3.9@49184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 19:43:06 +00:00
whyisjake
03372aee6e 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 3.9 branch.

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

Built from https://develop.svn.wordpress.org/branches/3.9@49407


git-svn-id: http://core.svn.wordpress.org/branches/3.9@49166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 19:15:11 +00:00
Sergey Biryukov
896d4d588b 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 3.9 branch.
Fixes #50392.
Built from https://develop.svn.wordpress.org/branches/3.9@48259


git-svn-id: http://core.svn.wordpress.org/branches/3.9@48028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-01 09:54:23 +00:00
desrosj
9f7a3edab3 WordPress 3.9.32.
Built from https://develop.svn.wordpress.org/branches/3.9@48004


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 21:40:26 +00:00
Sergey Biryukov
c7feb3f848 Themes: Ensure a broken theme name is returned properly.
Follow-up to [47966] for the 3.9 branch.
Built from https://develop.svn.wordpress.org/branches/3.9@47979


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 18:56:31 +00:00
whyisjake
6965572495 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 3.9 branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/3.9@47966


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 18:52:30 +00:00
desrosj
c623e36b53 Updating the About page for WordPress 3.9.31
Built from https://develop.svn.wordpress.org/branches/3.9@47687


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 18:15:11 +00:00
desrosj
f8abe372b5 WordPress 3.9.31
Built from https://develop.svn.wordpress.org/branches/3.9@47681


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 18:04:10 +00:00
whyisjake
348c871b83 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 3.9 branch.

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

Built from https://develop.svn.wordpress.org/branches/3.9@47660


git-svn-id: http://core.svn.wordpress.org/branches/3.9@47437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 16:56:12 +00:00
Sergey Biryukov
a6e4d88a7a WordPress 3.9.30
Built from https://develop.svn.wordpress.org/branches/3.9@46934


git-svn-id: http://core.svn.wordpress.org/branches/3.9@46734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-12-12 20:35:11 +00:00
Sergey Biryukov
1150c36593 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 3.9 branch.

Props: xknown, nickdaugherty, peterwilsoncc.
Built from https://develop.svn.wordpress.org/branches/3.9@46906


git-svn-id: http://core.svn.wordpress.org/branches/3.9@46706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-12-12 18:34:13 +00:00
desrosj
dc7409e713 WordPress 3.9.29.
Built from https://develop.svn.wordpress.org/branches/3.9@46521


git-svn-id: http://core.svn.wordpress.org/branches/3.9@46318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 20:19:11 +00:00
whyisjake
9442d0f7e5 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.
- Customizer: Properly sanitize background images.

Backports [46474], [46475], [46476], [46477], [46478], [46483], [46485] to the 3.9 branch.


Built from https://develop.svn.wordpress.org/branches/3.9@46503


git-svn-id: http://core.svn.wordpress.org/branches/3.9@46300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 19:27:12 +00:00
desrosj
fab981a1cb WordPress 3.9.28.
Built from https://develop.svn.wordpress.org/branches/3.9@46033


git-svn-id: http://core.svn.wordpress.org/branches/3.9@45845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 22:02:29 +00:00
desrosj
128e2430a8 Fix for URL sanitization in wp_kses_bad_protocol_once().
Merges [45997] to the 3.9 branch.

Props irsdl, sstoqnov, whyisjake.
Built from https://develop.svn.wordpress.org/branches/3.9@46016


git-svn-id: http://core.svn.wordpress.org/branches/3.9@45827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 21:43:16 +00:00
Sergey Biryukov
58a90c49c1 Improve URL validation in wp_validate_redirect().
Merges [45971] to the 3.9 branch.
Props vortfu, whyisjake, peterwilsoncc.
Built from https://develop.svn.wordpress.org/branches/3.9@45986


git-svn-id: http://core.svn.wordpress.org/branches/3.9@45797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 17:16:25 +00:00
Sergey Biryukov
e1a05244d9 Escape the output in wp_ajax_upload_attachment().
Merges [45936] to the 3.9 branch.
Props whyisjake, sstoqnov.
Built from https://develop.svn.wordpress.org/branches/3.9@45966


git-svn-id: http://core.svn.wordpress.org/branches/3.9@45777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 16:48:23 +00:00
whyisjake
2dd32a25ce Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 3.9 branch.

Props vortfu, whyisjake, peterwilsoncc


Built from https://develop.svn.wordpress.org/branches/3.9@45965


git-svn-id: http://core.svn.wordpress.org/branches/3.9@45776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 16:48:12 +00:00
Gary Pendergast
8c00811afd WordPress 3.9.27
Built from https://develop.svn.wordpress.org/branches/3.9@44888


git-svn-id: http://core.svn.wordpress.org/branches/3.9@44719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-03-13 03:05:12 +00:00
Sergey Biryukov
df6538cd9e Comments: Improve comment content filtering.
Merges [44842] to the 3.9 branch.
Built from https://develop.svn.wordpress.org/branches/3.9@44855


git-svn-id: http://core.svn.wordpress.org/branches/3.9@44687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-03-12 22:50:12 +00:00
Jeremy Felt
3fa991919a Bump 3.9 branch to version 3.9.26.
Built from https://develop.svn.wordpress.org/branches/3.9@44088


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 02:16:19 +00:00
Gary Pendergast
188c405997 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 3.9 branch.


Built from https://develop.svn.wordpress.org/branches/3.9@44072


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:59:10 +00:00
Peter Wilson
69cb93fc01 Multisite: Validate activation links.
Merges [44048] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@44071


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:58:11 +00:00
iandunn
7bd9d508d8 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 `3.9` branch.

Built from https://develop.svn.wordpress.org/branches/3.9@44045


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:22:10 +00:00
Peter Wilson
7fb75fbac4 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 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@44038


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 01:04:11 +00:00
Gary Pendergast
006095dd57 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 3.9 branch.


Built from https://develop.svn.wordpress.org/branches/3.9@44016


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-12 23:58:11 +00:00
Jeremy Felt
7fd3a9f5f7 Media: Improve verification of MIME file types.
Merges [43988] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@44010


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-12 23:44:11 +00:00
Aaron Campbell
682e48d5bd Bump 3.9 branch to version 3.9.25
Built from https://develop.svn.wordpress.org/branches/3.9@43417


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-07-05 16:14:11 +00:00
John Blackbourn
309d82f2bc Media: Limit thumbnail file deletions to the same directory as the original file.
Merges [43393] into the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@43403


git-svn-id: http://core.svn.wordpress.org/branches/3.9@43231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-07-05 15:14:12 +00:00
Aaron Campbell
b5bae28a24 Bump 3.9 branch to version 3.9.24
Built from https://develop.svn.wordpress.org/branches/3.9@42943


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 20:32:23 +00:00
Dominik Schilling
09ddadad9c Template: Make sure the version string is correctly escaped for use in attributes.
Merge of [42893] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42927


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 16:11:23 +00:00
Dominik Schilling
19b1303e66 Login: Use wp_safe_redirect() when redirecting the login page if forced to use HTTPS.
Merge of [42892] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42905


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 15:34:27 +00:00
Sergey Biryukov
e4a4b23b1e General: Update copyright year to 2018 in license.txt.
Props rachelbaker.
Merges [42424] to the 3.9 branch.
Fixes #43007.
Built from https://develop.svn.wordpress.org/branches/3.9@42562


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-01-23 11:30:27 +00:00
Dion Hulse
1b8cce073d Bump the 3.9 branch to 3.9.23.
Built from https://develop.svn.wordpress.org/branches/3.9@42504


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-01-16 21:47:15 +00:00
Dion Hulse
c46690c68b External Libraries: Remove unnecessary / obsoleted MediaElement.js files.
Merges [42478] to the 3.9 branch.
Fixes #42720 for 3.9.

Built from https://develop.svn.wordpress.org/branches/3.9@42487


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-01-16 08:15:17 +00:00
Dion Hulse
046ba97ee5 Upgrade: When deleting old files, if deletion fails attempt to empty the file instead.
Props joemcgill, dd32.
Merges [42434] to the 3.9 branch.
Fixes #42963 for 3.9.

Built from https://develop.svn.wordpress.org/branches/3.9@42475


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-01-16 06:59:15 +00:00
John Blackbourn
62423cc81f Bump 3.9 branch to version 3.9.22.
Built from https://develop.svn.wordpress.org/branches/3.9@42326


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-29 19:04:15 +00:00
John Blackbourn
2a5436237f Hardening: Remove the ability to upload JavaScript files for users who do not have the unfiltered_html capability.
Merges [42261] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42307


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-29 16:42:29 +00:00
John Blackbourn
a18a45296d Hardening: Ensure the attributes of enclosures are correctly escaped in RSS and Atom feeds.
Merges [42260] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42306


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-29 16:42:15 +00:00
John Blackbourn
8c9519f1e7 Hardening: Add escaping to the language attributes used on html elements.
Merges [42259] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42305


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-29 16:41:04 +00:00
John Blackbourn
d8e9c02011 Hardening: Use a properly generated hash for the newbloguser key instead of a determinate substring.
Merges [42258] to the 3.9 branch.

Built from https://develop.svn.wordpress.org/branches/3.9@42304


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-29 16:40:50 +00:00
Dion Hulse
80a325fda9 WPDB: Check that AUTH_SALT is not empty, Fix a PHP notice when AUTH_SALT is undefined.
Props jsonfry, mkomar, pento.
Merges [42119] and [42120] to the 3.9 branch.
Fixes #42431 and #42401 for 3.9.

Built from https://develop.svn.wordpress.org/branches/3.9@42239


git-svn-id: http://core.svn.wordpress.org/branches/3.9@42068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-27 01:14:32 +00:00