Commit Graph

24919 Commits

Author SHA1 Message Date
Jonathan Desrosiers 5c30e93acd Tag 3.8.35
git-svn-id: https://develop.svn.wordpress.org/tags/3.8.35@49444 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:51:01 +00:00
Jonathan Desrosiers 820f11df43 WordPress 3.8.35.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@49426 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:34:38 +00:00
Jake Spurlock 39b3c907d0 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.8 branch.

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


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@49408 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:15:36 +00:00
Sergey Biryukov a6b7104ad3 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.8 branch.
Fixes #50392.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@48260 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-01 09:54:08 +00:00
Jonathan Desrosiers aef7fd6f88 WordPress 3.8.34.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@48005 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 21:33:12 +00:00
Sergey Biryukov 63dd960dc8 Themes: Ensure a broken theme name is returned properly.
Follow-up to [47965] for the 3.8 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47977 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 18:45:31 +00:00
Jake Spurlock 10b3092c14 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.8  branch.
Props xknown, sstoqnov, vortfu, SergeyBiryukov, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47965 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 18:22:39 +00:00
Jonathan Desrosiers 0cb9868a0d Updating the about page for WordPress 3.8.33
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47686 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 18:12:20 +00:00
Jonathan Desrosiers ee64546b26 WordPress 3.8.33
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47682 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:57:47 +00:00
Jake Spurlock 8523309721 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.8 branch.

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


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47661 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 16:57:01 +00:00
Sergey Biryukov cdef2fce26 When asserting microtime output as a number, make it a number.
microtime is by default a string. Doing a greater then or less than check of that string is a bad idea since it uses the first part (the micro part of microtime) rather then the actual time. This adds a helper to convert microtime output into a float which we can then use to properly compare the output of microtime.

This fixes an intermittent test failure.

Props jorbin.
Merges [30337] to the 3.8 branch.
See #30336, #49485.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47491 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 14:43:45 +00:00
Sergey Biryukov a0aad8ebaf 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/3.8@47489 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-22 14:29:03 +00:00
Sergey Biryukov 410959cd7e Build/Test Tools: Fix the Travis CI build for the 3.8 branch.
Among other fixes, this backports [26871], [26909-26910], [26940], [27086], [27168], [28799], [28873], [28943], [28961], [28964], [28966-28967], [29120], [29251], [29503], [29860], [29869], [29954], [30001], [30160], [30282], [30285], [30289-30291], [30513-30514], [30516-30521], [30524], [30526], [30529-30530], [31253-31254], [31257-31259], [31622], [40241], [40255], [40257], [40259], [40269], [40271], [40446], [40449], [40457], [40604], [40538], [40833], [41082], [41303], [41306], [44993].

See #49485.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47338 602fd350-edb4-49c9-b593-d223f7449a82
2020-02-21 13:05:39 +00:00
Sergey Biryukov 03cccce414 Posts, Post Types: Ensure `edit_post()` promotes an auto-draft to draft.
This fixes a regression in 3.8 branch introduced in [44074].

Follow-up to [28073].

See #49485.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@47334 602fd350-edb4-49c9-b593-d223f7449a82
2020-02-20 22:09:12 +00:00
Sergey Biryukov 3c89c16b17 WordPress 3.8.32
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46935 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 20:34:48 +00:00
Sergey Biryukov 04ee416c1f 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.8 branch.

Props: xknown, nickdaugherty, peterwilsoncc.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46904 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-12 18:27:33 +00:00
Jonathan Desrosiers 6b90d0cd62 WordPress 3.8.31.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46522 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 20:19:33 +00:00
Jake Spurlock 763fb86728 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.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46504 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-14 19:29:52 +00:00
Jake Spurlock 8969da8557 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 3.8 branch.

Fixes #48140


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46306 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-25 21:06:44 +00:00
Jonathan Desrosiers 2238bf6e12 WordPress 3.8.30.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46032 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 21:18:01 +00:00
Jonathan Desrosiers a17a542f41 Fix for URL sanitization in `wp_kses_bad_protocol_once()`.
Merges [45997] to the 3.8 branch.

Props irsdl, sstoqnov, whyisjake.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@46018 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 18:40:10 +00:00
Sergey Biryukov 9ec58a1286 Improve URL validation in `wp_validate_redirect()`.
Merges [45971] to the 3.8 branch.
Props vortfu, whyisjake, peterwilsoncc.

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

Props vortfu, whyisjake, peterwilsoncc


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

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@45967 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-04 16:46:37 +00:00
Gary Pendergast c4c5986d9e WordPress 3.8.29
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44890 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-13 01:57:35 +00:00
Sergey Biryukov 3a4fdd1ab7 Comments: Improve comment content filtering.
Merges [44842] to the 3.8 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44856 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-12 22:50:15 +00:00
Jeremy Felt e9af5c5a4f Bump 3.8 branch to version 3.8.28.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44089 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 02:15:01 +00:00
Gary Pendergast 1a0098939d 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.8 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44074 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 02:00:57 +00:00
Peter Wilson d3904a56bc Multisite: Validate activation links.
Merges [44048] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44073 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 02:00:21 +00:00
Ian Dunn 049611458c 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.8` branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44046 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:22:08 +00:00
Peter Wilson 7d81e455ba 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.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44039 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:10:49 +00:00
Gary Pendergast 636db0e6c9 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.8 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44018 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 00:01:21 +00:00
Jeremy Felt cd8b131ebe Media: Improve verification of MIME file types.
Merges [43988] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@44011 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:45:16 +00:00
Aaron D. Campbell e5880a2df5 Bump 3.8 branch to version 3.8.27
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@43418 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-05 16:11:06 +00:00
John Blackbourn 6e0e59b85e Media: Limit thumbnail file deletions to the same directory as the original file.
Merges [43393] into the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@43404 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-05 15:15:51 +00:00
Aaron D. Campbell 295eb6bf87 Bump 3.8 branch to version 3.8.26
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42944 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 20:30:25 +00:00
Dominik Schilling (ocean90) df78abaa53 Template: Make sure the version string is correctly escaped for use in attributes.
Merge of [42893] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42928 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 16:06:32 +00:00
Dominik Schilling (ocean90) 4351c8f077 Login: Use `wp_safe_redirect()` when redirecting the login page if forced to use HTTPS.
Merge of [42892] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42906 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 15:29:37 +00:00
Sergey Biryukov 99b52f83ab General: Update copyright year to 2018 in license.txt.
Props rachelbaker.
Merges [42424] to the 3.8 branch.
Fixes #43007.

git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42563 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-23 11:26:55 +00:00
Dion Hulse 789584ab95 Bump the 3.8 branch to 3.8.25.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42505 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-16 21:46:33 +00:00
Dion Hulse efe302bd12 External Libraries: Remove unnecessary / obsoleted MediaElement.js files.
Merges [42478] to the 3.8 branch.
Fixes #42720 for 3.8.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42488 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-16 08:14:46 +00:00
Dion Hulse df1f07d05c Upgrade: When deleting old files, if deletion fails attempt to empty the file instead.
Props joemcgill, dd32.
Merges [42434] to the 3.8 branch.
Fixes #42963 for 3.8.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42476 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-16 06:58:02 +00:00
John Blackbourn 9557240467 Bump 3.8 branch to version 3.8.24.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42327 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-29 19:04:36 +00:00
John Blackbourn 703f5771a7 Hardening: Remove the ability to upload JavaScript files for users who do not have the `unfiltered_html` capability.
Merges [42261] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42311 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-29 16:46:43 +00:00
John Blackbourn 85d51deea5 Hardening: Ensure the attributes of enclosures are correctly escaped in RSS and Atom feeds.
Merges [42260] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42310 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-29 16:45:54 +00:00
John Blackbourn 55b4425b7d Hardening: Add escaping to the language attributes used on `html` elements.
Merges [42259] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42309 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-29 16:42:51 +00:00
John Blackbourn 6a02d2d4db Hardening: Use a properly generated hash for the `newbloguser` key instead of a determinate substring.
Merges [42258] to the 3.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42308 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-29 16:42:14 +00:00
Dion Hulse 6c2f83076b 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.8 branch.
Fixes #42431 and #42401 for 3.8.


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42240 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-27 01:13:09 +00:00
John Blackbourn 6e4a475a9c General: Remove the version number from the readme file in the 3.8 branch.
See #42386


git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42098 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-31 18:03:50 +00:00
Gary Pendergast 4d72c6da2f Bump 3.8 branch to version 3.8.23.
git-svn-id: https://develop.svn.wordpress.org/branches/3.8@42079 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-31 13:45:24 +00:00