Commit Graph

13770 Commits

Author SHA1 Message Date
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
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
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
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
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 : 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
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
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
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
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
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
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
Gary Pendergast
76ec03176d Bump 3.9 branch to version 3.9.21.
Built from https://develop.svn.wordpress.org/branches/3.9@42078


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-31 13:45:15 +00:00
Gary Pendergast
9b92304fd1 Database: Restore numbered placeholders in wpdb::prepare().
[41496] removed support for numbered placeholders in queries send through `wpdb::prepare()`, which, despite being undocumented, were quite commonly used.

This change restores support for numbered placeholders (as well as a subset of placeholder formatting), while also adding extra checks to ensure the correct number of arguments are being passed to `wpdb::prepare()`, given the number of placeholders.

Merges [41662], [42056] to the 3.9 branch.
See #41925.


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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-31 12:57:16 +00:00
Aaron Campbell
79224df81a Bump 3.9 branch to version 3.9.20.
Built from https://develop.svn.wordpress.org/branches/3.9@41519


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 20:13:15 +00:00
Aaron Campbell
f6afa94bef Database: Hardening to bring wpdb::prepare() inline with documentation.
`wpdb::prepare()` supports %s, %d, and %F as placeholders in the query string. Any other non-escaped % will be escaped.

Merges [41496] to 3.9 branch.


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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 18:43:15 +00:00
Aaron Campbell
30570f494f Database: Don’t trigger _doing_it_wrong() for null values in wpdb::prepare().
While `wpdb::prepare()` does not support null values (see #12819) they still appear in the wild like in the WordPress Importer and other plugins.

Merges [41483] to 3.9 branch.


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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 16:27:16 +00:00
Aaron Campbell
a5756e9c27 Database: Hardening for wpdb::prepare()
Previously if you passed an array of values for placeholders, additional values could be passed as well. Now additional values will be ignored.

Merges [41470] to 3.9 branch.


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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 15:04:33 +00:00
Dominik Schilling
435ca07747 Editor: Prevent adding javascript: and data: URLs through the inline link dialog.
Merge of [41393] to the 3.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@41242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 10:20:24 +00:00
Aaron Campbell
66aaaa6aa8 Bump 3.9 branch to version 3.9.19.
Built from https://develop.svn.wordpress.org/branches/3.9@40756


git-svn-id: http://core.svn.wordpress.org/branches/3.9@40614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 21:53:55 +00:00
Pascal Birchler
73b0352cba Media: Simplify upload error message construction.
Merges [40736] to the 3.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@40603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 18:05:32 +00:00
Dominik Schilling
9febffc6f7 Customize: Ignore invalid customization sessions.
Merge of [40704] to the 3.9 branch.
Built from https://develop.svn.wordpress.org/branches/3.9@40713


git-svn-id: http://core.svn.wordpress.org/branches/3.9@40576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 12:21:15 +00:00
Pascal Birchler
c2f264d25f Adjust post meta checks
Merges [40692] to the 3.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@40564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 08:54:15 +00:00
Pascal Birchler
a81079c403 Whitelist post arguments in XML-RPC
Merges [40677] to the 3.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/3.9@40549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 08:29:15 +00:00