Commit Graph

38120 Commits

Author SHA1 Message Date
John Blackbourn e1b174e016 WordPress 4.9.29.
Built from https://develop.svn.wordpress.org/branches/4.9@62010


git-svn-id: http://core.svn.wordpress.org/branches/4.9@61292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-13 15:05:27 +00:00
John Blackbourn 7659484865 Grouped backports for the 4.9 branch.
- XML-RPC: Switch to `wp_safe_remote()` when fetching a pingback URL.
- HTML API: Prevent `WP_HTML_Tag_Processor` instances being unserialized and add some extra logic for validating pattern and template file paths.
- KSES: Optimize PCRE pattern detecting numeric character references.
- Customize: Improve escaping approach used for nav menu attributes.
- Media: Ensure the attachment parent is accessible to the user before showing a link to it in the media manager.
- Administration: Ensure client-side templates are only detected when they're correctly associated with a script tag.
- Filesystem API: Don't attempt to extract invalid files from a zip when using the PclZip library.

Merges [61879-61884,61886-61887,61890,61913] to the 4.9 branch.

Props johnbillion, xknown, dmsnell, jorbin, peterwilson, desrosj, westonruter, jonsurrell, audrasjb.

Built from https://develop.svn.wordpress.org/branches/4.9@62004


git-svn-id: http://core.svn.wordpress.org/branches/4.9@61286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-13 12:58:27 +00:00
desrosj a68b054810 Security: Update composer/ca-bundle to version 1.5.9.
Props jorbin, desrosj.

Merges [60691], [61146] to the 4.9 branch.
See #63165.
Built from https://develop.svn.wordpress.org/branches/4.9@61167


git-svn-id: http://core.svn.wordpress.org/branches/4.9@60503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-06 20:53:29 +00:00
desrosj 0737a345fb WordPress 4.9.28.
Built from https://develop.svn.wordpress.org/branches/4.9@60859


git-svn-id: http://core.svn.wordpress.org/branches/4.9@60195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:53:10 +00:00
desrosj 316699de30 Grouped backports for the 4.9 branch.
- REST API: Increase the specificity of capability checks for collections when the `edit` context is in use.
- Menus: Prevent HTML in menu item titles from being rendered unexpectedly.

Merges [60814], [60815], [60816] to the 4.9 branch.

Props andraganescu, desrosj, ehti, hurayraiit, iandunn, joehoyle, johnbillion, jorbin, mnelson4, noisysocks, peterwilsoncc, phillsav, rmccue, timothyblynjacobs, vortfu, westonruter , whyisjake, zieladam.
Built from https://develop.svn.wordpress.org/branches/4.9@60837


git-svn-id: http://core.svn.wordpress.org/branches/4.9@60173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:23:20 +00:00
audrasjb d2eca189cb Post 4.9.27 release bump.
The 4.9 branch is now 4.9.28-alpha.

Built from https://develop.svn.wordpress.org/branches/4.9@60599


git-svn-id: http://core.svn.wordpress.org/branches/4.9@59935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 20:39:27 +00:00
John Blackbourn dddfc4c97d WordPress 4.9.27.
Built from https://develop.svn.wordpress.org/branches/4.9@60559


git-svn-id: http://core.svn.wordpress.org/branches/4.9@59895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 16:50:51 +00:00
desrosj 6edcfaff63 Security: Update composer/ca-bundle to version 1.5.7.
Merges [60320] to the 4.9 branch.

See #63165.
Built from https://develop.svn.wordpress.org/branches/4.9@60388


git-svn-id: http://core.svn.wordpress.org/branches/4.9@59724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-30 17:35:49 +00:00
desrosj 2574d87c63 Security: Update bundled Root Certificates.
The Root Certificate bundle maintained by Mozilla ships in WordPress to allow SSL certificates to be verified on hosts with incomplete, outdated, or invalid local SSL configurations.

This updates the `ca-bundle.crt` file to the latest version, which applies upstream changes from the bundle maintained by Mozilla and keeps all unexpired legacy 1024bit certificates which are kept for backward compatibility purposes (see [35919]).

Partially merges [46094], [58707], [59740] and [59969] to the 4.9 branch.

See #62811, #62711, #50828, #45807.
Built from https://develop.svn.wordpress.org/branches/4.9@60021


git-svn-id: http://core.svn.wordpress.org/branches/4.9@59357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-17 16:44:10 +00:00
audrasjb 68b6308de3 WordPress 4.9.26.
Built from https://develop.svn.wordpress.org/branches/4.9@58518


git-svn-id: http://core.svn.wordpress.org/branches/4.9@57966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-06-24 16:31:15 +00:00
audrasjb 8eeccbf75d Editor: Fix Path Traversal issue on Windows in Template-Part Block.
Merges [58470] to the 4.9 branch.
Props xknown, jorbin.



Built from https://develop.svn.wordpress.org/branches/4.9@58493


git-svn-id: http://core.svn.wordpress.org/branches/4.9@57942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-06-24 15:44:28 +00:00
Aaron Jorbin 129516e7df General: Backport polyfills for str_ends_with() and str_starts_with().
Merges [52040], [56016], and [56015] to 4.9 branch.

Props ocean90, SergeyBiryukov, desrosj, joemcgill, jorbin, mukesh27.

Built from https://develop.svn.wordpress.org/branches/4.9@57455


git-svn-id: http://core.svn.wordpress.org/branches/4.9@56956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 18:11:26 +00:00
Joe McGill baa6ded055 WordPress 4.9.25.
Built from https://develop.svn.wordpress.org/branches/4.9@57423


git-svn-id: http://core.svn.wordpress.org/branches/4.9@56929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 16:19:27 +00:00
Aaron Jorbin 5b407f2ab5 Grouped Backports to the 4.9 branch.
- Install: When populating options, maybe_serialize instead of always serialize.
- Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 4.9 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.

Built from https://develop.svn.wordpress.org/branches/4.9@57406


git-svn-id: http://core.svn.wordpress.org/branches/4.9@56912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 15:04:28 +00:00
audrasjb 4cb31c26c7 WordPress 4.9.24.
Built from https://develop.svn.wordpress.org/branches/4.9@56872


git-svn-id: http://core.svn.wordpress.org/branches/4.9@56383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:19:57 +00:00
davidbaumwald ae04cdeb91 Grouped backports to the 4.9 branch.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Shortcodes: Restrict media shortcode ajax to certain type.
- REST API: Ensure no-cache headers are sent when methods are overridden.
- REST API: Limit `search_columns` for users without `list_users`.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56834], [56835], [56836], [56838], and [56840] to the 4.9 branch.
Props xknown, jorbin, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, antpb, rmccue.
Built from https://develop.svn.wordpress.org/branches/4.9@56865


git-svn-id: http://core.svn.wordpress.org/branches/4.9@56376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:15:06 +00:00
Sergey Biryukov 0d6d8d811d Grouped backports to the 4.9 branch.
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.

Merges [55763] and [55764] to the 4.9 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.
Built from https://develop.svn.wordpress.org/branches/4.9@55787


git-svn-id: http://core.svn.wordpress.org/branches/4.9@55299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:54:27 +00:00
Peter Wilson 65e9d7950e I18N: Add new strings to about.php for use with end-of-life updates.
This changeset adds two additional translation strings in the changelog file, for use when releasing the final version of WordPress on a particular branch.

Props peterwilsoncc, audrasjb, mukesh27.
Merges [55350] to the 4.9 branch.
Fixes #57216.

Built from https://develop.svn.wordpress.org/branches/4.9@55383


git-svn-id: http://core.svn.wordpress.org/branches/4.9@54916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-21 03:05:27 +00:00
Sergey Biryukov 8564a4a082 WordPress 4.9.22.
Built from https://develop.svn.wordpress.org/branches/4.9@54595


git-svn-id: http://core.svn.wordpress.org/branches/4.9@54149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:55:41 +00:00
Sergey Biryukov affa0e3fe7 Grouped backports to the 4.9 branch.
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Media: Refactor search by filename within the admin,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Comments: Apply kses when editing comments,
- Customize: Escape blogname option in underscores templates,
- REST API: Lockdown post parameter of the terms endpoint,
- Mail: Reset PHPMailer properties between use,
- Query: Validate relation in `WP_Date_Query`,
- Widgets: Escape RSS error messages for display.

Merges [54521], [54522], [54523], [54524], [54525], [54526], [54527], [54528], [54529], [54530], [54541] to the 4.9 branch.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb, martinkrcho, vortfu, davidbaumwald, tykoted, timothyblynjacobs, johnjamesjacoby, ehtis, matveb, talldanwp.

Built from https://develop.svn.wordpress.org/branches/4.9@54569


git-svn-id: http://core.svn.wordpress.org/branches/4.9@54123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 18:14:49 +00:00
Peter Wilson b1801b170f Security: Introduce strings to indicate support status.
Add strings for use in future maintenance/security releases to indicate the security support status of the version of WordPress.

Two strings are introduced:

* indicating the version of WordPress is not receiving security updates, and,
* indicating the version of WordPress will shortly stop receiving security updates.

This change does not make use of the strings, the purpose is to make them available to translators prior to dropping support of selected versions of WordPress.

Props costdev, chesio, robinwpdeveloper, desrosj, rudlinkon, mukesh27, sumitbagthariya16.
Merges [54322] to the 4.9 branch.
See #56532.

Built from https://develop.svn.wordpress.org/branches/4.9@54451


git-svn-id: http://core.svn.wordpress.org/branches/4.9@54010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 22:03:28 +00:00
desrosj e79a7394a5 WordPress 4.9.21.
Built from https://develop.svn.wordpress.org/branches/4.9@53998


git-svn-id: http://core.svn.wordpress.org/branches/4.9@53557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:35:34 +00:00
Sergey Biryukov 69586ea627 Grouped backports to the 4.9 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.

Merges [53958-53960] to the 4.9 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.

Built from https://develop.svn.wordpress.org/branches/4.9@53974


git-svn-id: http://core.svn.wordpress.org/branches/4.9@53533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:44:26 +00:00
davidbaumwald 4d267bf158 WordPress 4.9.20.
Built from https://develop.svn.wordpress.org/branches/4.9@52881


git-svn-id: http://core.svn.wordpress.org/branches/4.9@52470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:09:26 +00:00
Sergey Biryukov b9b627e24f 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.9 branch.
Built from https://develop.svn.wordpress.org/branches/4.9@52857


git-svn-id: http://core.svn.wordpress.org/branches/4.9@52446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 21:28:26 +00:00
desrosj 66eb5e3992 WordPress 4.9.19.
Built from https://develop.svn.wordpress.org/branches/4.9@52496


git-svn-id: http://core.svn.wordpress.org/branches/4.9@52088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:53:18 +00:00
desrosj cdb1418a32 Grouped backports to the 4.9 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.9 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/4.9@52474


git-svn-id: http://core.svn.wordpress.org/branches/4.9@52066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:16:25 +00:00
Peter Wilson 6de8b73ae1 WordPress 4.9.18.
Built from https://develop.svn.wordpress.org/branches/4.9@50877


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


Built from https://develop.svn.wordpress.org/branches/4.9@50855


git-svn-id: http://core.svn.wordpress.org/branches/4.9@50464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 22:32:26 +00:00
Peter Wilson 88cb968e00 Version bump for 4.9.17.
Built from https://develop.svn.wordpress.org/branches/4.9@50744


git-svn-id: http://core.svn.wordpress.org/branches/4.9@50353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:40:49 +00:00
Peter Wilson ac28cd61cf Grouped merges for 4.9.17.
* REST API: Allow authors to read their own password protected posts.
* About page update

Merges [50717] to the 4.9 branch.


Built from https://develop.svn.wordpress.org/branches/4.9@50732


git-svn-id: http://core.svn.wordpress.org/branches/4.9@50341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:13:54 +00:00
desrosj 124bbbc653 Build/Test Tools: Backport GitHub Action and build improvements to the 4.9 branch.
This backports several build and test tool improvements to the 4.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,50413,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.9 branch.
See #50401, #51801, #51802, #52548, #52608, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
Built from https://develop.svn.wordpress.org/branches/4.9@50625


git-svn-id: http://core.svn.wordpress.org/branches/4.9@50237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-31 19:34:28 +00:00
desrosj 5892579440 Build/Test Tools: Support NodeJS 14.x in the 4.9 branch.
This updates the 4.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.

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.9, 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,50192] to the 4.9 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/4.9@50202


git-svn-id: http://core.svn.wordpress.org/branches/4.9@49876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 04:07:43 +00:00
desrosj 04602bccd8 WordPress 4.9.16.
Built from https://develop.svn.wordpress.org/branches/4.9@49415


git-svn-id: http://core.svn.wordpress.org/branches/4.9@49174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 19:39:06 +00:00
whyisjake 01a575e1b0 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.

Built from https://develop.svn.wordpress.org/branches/4.9@49397


git-svn-id: http://core.svn.wordpress.org/branches/4.9@49156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 18:53:27 +00:00
Sergey Biryukov ba7ae64a3c 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.
Built from https://develop.svn.wordpress.org/branches/4.9@48249


git-svn-id: http://core.svn.wordpress.org/branches/4.9@48018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-01 09:50:25 +00:00
desrosj 916a395691 WordPress 4.9.15.
Built from https://develop.svn.wordpress.org/branches/4.9@47994


git-svn-id: http://core.svn.wordpress.org/branches/4.9@47762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 21:37:03 +00:00
desrosj b1cb849975 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.

Built from https://develop.svn.wordpress.org/branches/4.9@47967


git-svn-id: http://core.svn.wordpress.org/branches/4.9@47738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 18:52:57 +00:00
Sergey Biryukov 9371029a12 Update the About page for WordPress 4.9.14
Built from https://develop.svn.wordpress.org/branches/4.9@47700


git-svn-id: http://core.svn.wordpress.org/branches/4.9@47477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 18:37:32 +00:00
desrosj d6e61b10b5 WordPress 4.9.14
Built from https://develop.svn.wordpress.org/branches/4.9@47671


git-svn-id: http://core.svn.wordpress.org/branches/4.9@47448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 18:00:57 +00:00
whyisjake 0aef0d4b97 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.

Built from https://develop.svn.wordpress.org/branches/4.9@47648


git-svn-id: http://core.svn.wordpress.org/branches/4.9@47423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-04-29 16:16:26 +00:00
Sergey Biryukov 315b0d8efe WordPress 4.9.13
Built from https://develop.svn.wordpress.org/branches/4.9@46924


git-svn-id: http://core.svn.wordpress.org/branches/4.9@46724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-12-12 20:27:12 +00:00
Sergey Biryukov f524de858c 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 `&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.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/4.9@46718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-12-12 18:57:27 +00:00
desrosj 9c716931a3 WordPress 4.9.12.
Built from https://develop.svn.wordpress.org/branches/4.9@46511


git-svn-id: http://core.svn.wordpress.org/branches/4.9@46308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 20:09:28 +00:00
whyisjake ca7629305c 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.

Built from https://develop.svn.wordpress.org/branches/4.9@46493


git-svn-id: http://core.svn.wordpress.org/branches/4.9@46290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 18:39:28 +00:00
desrosj 0df80b099e WordPress 4.9.11.
Built from https://develop.svn.wordpress.org/branches/4.9@46043


git-svn-id: http://core.svn.wordpress.org/branches/4.9@45855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 22:05:54 +00:00
Andrew Ozz bef4964cc3 jQuery: Backport the patch from jQuery 3.4.0.
Merges [45342] to the 4.9 branch.

Props MikeNGarrett, peterwilsoncc, azaozz.
Fixes #47020.
Built from https://develop.svn.wordpress.org/branches/4.9@46020


git-svn-id: http://core.svn.wordpress.org/branches/4.9@45831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 21:45:33 +00:00
desrosj 061b316605 Fix for URL sanitization in wp_kses_bad_protocol_once().
Merges [45997] to the 4.9 branch.

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


git-svn-id: http://core.svn.wordpress.org/branches/4.9@45816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 21:39:04 +00:00
Sergey Biryukov ee57ce6745 Improve handling the existing rel attribute in wp_rel_nofollow_callback().
Merges [45990] to the 4.9 branch.
Props xknown, sstoqnov.
Built from https://develop.svn.wordpress.org/branches/4.9@45994


git-svn-id: http://core.svn.wordpress.org/branches/4.9@45805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 17:48:24 +00:00
Sergey Biryukov 0b53ca170a Improve URL validation in wp_validate_redirect().
Merges [45971] to the 4.9 branch.
Props vortfu, whyisjake, peterwilsoncc.
Built from https://develop.svn.wordpress.org/branches/4.9@45975


git-svn-id: http://core.svn.wordpress.org/branches/4.9@45786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-04 17:08:24 +00:00