34967 Commits

Author SHA1 Message Date
Pascal Birchler
5f991a4c4e Bump 4.6 branch to version 4.6.5.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40488 602fd350-edb4-49c9-b593-d223f7449a82
2017-04-20 16:21:34 +00:00
Pascal Birchler
3679c59d4f Fix broken audio/video functions when sanitizing ID3 data
This fixes a bug where running `wp_kses_post_deep()` on all the ID3
tag data corrupted blob data.

See #40075, #40085.

Merges [40400] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40461 602fd350-edb4-49c9-b593-d223f7449a82
2017-04-17 13:06:47 +00:00
John Blackbourn
750343b607 Build/Test tools: Reverse the order in which the Travis jobs run on the 4.6 branch.
See #39705


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40436 602fd350-edb4-49c9-b593-d223f7449a82
2017-04-15 17:46:42 +00:00
John Blackbourn
0db92f8444 Build/Test tools: Trim the test matrix on Travis in order to speed up the 4.6 branch build.
This removes all allowed failure jobs, plus PHP 5.3, 5.4, and 5.5 jobs.

See #40407


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40412 602fd350-edb4-49c9-b593-d223f7449a82
2017-04-10 23:29:17 +00:00
John Blackbourn
d8be09bcb6 Build/Test tools: Don't install PHPUnit on the travis:js builds. Saves a couple of minutes of build time.
See #40100

Merges [40269] and [40271] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40273 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-11 00:09:28 +00:00
Dominik Schilling (ocean90)
902dbfb04a Build/Test Tools: Update .travis.yml to include latest improvements from trunk.
* Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
* On Travis CI install and use the node version which is specified in package.json.
* Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches.

Merge of [40255] and [40257-40259] to the 4.6 branch.

Props netweb, johnbillion.
See #35105, #39822, #40086.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40261 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-09 22:05:04 +00:00
John Blackbourn
dfdb88fe1f Build/Test tools: In Travis, skip some tests when not on trunk.
This skips time sensitive tests (copyright year and PHP/MySQL version requirements) when tests are run on branches on Travis.

Props netweb, jorbin

Fixes #39486

Merges [40241] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40249 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-08 00:50:43 +00:00
John Blackbourn
802946ebf3 Build/Test Tools: Disable Xdebug when testing on Travis to increase performance.
See #39978


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40226 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-07 01:06:24 +00:00
James Nylen
c0cfd4da44 Bump 4.6 branch to version 4.6.4.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40203 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 16:07:45 +00:00
John Blackbourn
b7ab0276bd Press This: Verify intent before fetching in-page resources using Press This.
Props vortfu

Merges [40195] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40197 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 13:57:21 +00:00
Aaron D. Campbell
893f5ba0ba Strip control characters before validating redirect.
Merges [40183] to 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40185 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 13:40:20 +00:00
Aaron D. Campbell
3c7cef64f3 Plugins: Add file check to plugin deletions.
Merges [40169] to 4.6 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40171 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 12:58:50 +00:00
Dominik Schilling (ocean90)
3ee664dad0 Embeds: URL encode YouTube video IDs for broader compatibility.
Merge of [40160] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40162 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 12:04:23 +00:00
Jeremy Felt
5cabc08684 Validate video and audio metadata.
Merge of [40148] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@40150 602fd350-edb4-49c9-b593-d223f7449a82
2017-03-06 08:03:30 +00:00
Aaron D. Campbell
d095cc5538 Bump 4.6 branch to version 4.6.3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39996 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 18:15:44 +00:00
Dominik Schilling (ocean90)
1b17d46d42 Press This: Do not show Categories & Tags UI for users who cannot assign terms to posts anyways.
Merge of [39968] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39971 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 14:09:05 +00:00
John Blackbourn
421c804e79 Posts, Post Types: When using Excerpt mode on the Posts list table, ensure the excerpt output matches what was manually entered into the Excerpt field.
Merges [39956] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39970 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 14:08:58 +00:00
Dominik Schilling (ocean90)
6560b993e3 Query: Ensure that queries work correctly with post type names with special characters.
Merge of [39952] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39955 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 13:39:03 +00:00
Joe McGill
7af63d8835 Media: Fix exif_imagetype check in wp_get_image_mime
This is a follow up to [39831].

Merges [39850] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39852 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 16:38:33 +00:00
Aaron D. Campbell
49e82a82bc Use plural string 'Maintenance and Security Releases' since we have two now
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39847 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 15:30:07 +00:00
Aaron D. Campbell
f1ed866b35 Bump 4.6 branch to version 4.6.2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39846 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 15:23:49 +00:00
Joe McGill
de48da00c5 Media: Improve image filetype checking.
This adds a new function `wp_get_image_mime()` which is used by
`wp_check_filetype_and_ext()` to validate image files using
`exif_imagetype()` if available instead of `getimagesize()`.

`getimagesize()` is less performant than `exif_imagetype()` and is
dependent on GD. If `exif_imagetype()` is not available, it falls back to
`getimagesize()` as before.

If `wp_check_filetype_and_ext()` can't validate the filetype, we now return
`false` for ext/MIME values.

Merges [39831] to the 4.6 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39833 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 13:13:44 +00:00
Dominik Schilling (ocean90)
1c84aebd00 Updates: Translate plugin data on the Updates screen.
Merge of [39808] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39821 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 11:38:44 +00:00
Dominik Schilling (ocean90)
5e60b439ae Themes: Fix markup for theme name fallbacks.
Merge of [39807] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39810 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 11:08:25 +00:00
Jeremy Felt
22ede707d5 Multisite: Use wp_rand() in signup key creation.
Merges [39795] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39797 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:30:48 +00:00
Dion Hulse
e7a5ecde82 Update PHPMailer to 5.2.22.
The full list of changes is available here:
https://github.com/PHPMailer/PHPMailer/compare/v5.2.21...v5.2.22

Merges [39759] to the 4.6 branch.
Fixes #37210 for 4.6.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39785 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:20:38 +00:00
Jeremy Felt
dbc8f0c4bf Mail: Disable wp-mail.php when mailserver_url is mail.example.com.
Merges [39772] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39774 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:15:18 +00:00
Aaron D. Campbell
658cb55b7d Add nonce for widget accessibility mode.
Props vortfu.

See #23328.

Merges [39760] to 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39762 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 01:43:00 +00:00
Dion Hulse
4d2384cba6 Mail: Upgrade PHPMailer to 5.2.21.
Merges [39645] to the 4.6 branch.
See #37210.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39722 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 05:34:57 +00:00
Dion Hulse
b6f6933d35 General: Update copyright year to 2017 in license.txt.
Props Nikschavan.
Merges [39659] to the 4.6 branch.
Fixes #39433.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@39698 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:37:32 +00:00
Dion Hulse
d833858b9f HTTP: Call mbstring_binary_safe_encoding() before making a request with Requests to avoid issues with mbstring.func_overload.
Props SergeyBiryukov.
Merges [38894] to the 4.6 branch.
Fixes #38226.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38895 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-25 00:46:23 +00:00
Dion Hulse
080ed23b74 HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues.
Merges [38727] to the 4.6 branch.

Fixes #38070, #37733 by reverting part of [38429] and using the fix in Requests.
Fixes #37992 allowing for connecting to SSL resources on ports other than 443.
Fixes #37991 by not sending default ports in the `Host:` header.
Fixes #37839 to match and decode Chunked responses correctly.
Fixes #38232 allowing a SSL connection to ignore the hostname of the certificate when verification is disabled.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38728 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-05 03:26:37 +00:00
Aaron D. Campbell
9df5a81e7c Media: Improved media titles when created from filename.
Preserves spaces and generally creates more accurate, cleaner titles from filenames of uploaded media.

Merge of [38614] to the 4.6 branch.

Props joemcgill.
Fixes #37989.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38615 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-17 06:26:36 +00:00
Gary Pendergast
851a0018ed Database: Fall back to utf8 when utf8mb4 isn't supported.
Sometimes, `DB_CHARSET` will be set to `utf8mb4`, even if the current setup doesn't support `utf8mb4`. After [38442], this can cause significant character set failures, causing the connection to fall back to `latin1`.

Instead of doing this, we now check that the connection supports `utf8mb4` before trying to use it, and fall back to `utf8` when we need to.

Merge of [38580] to the 4.6 branch.
Fixes #37982.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38581 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-08 23:53:25 +00:00
Jeremy Felt
801804154c The 4.6 branch is now 4.6.2-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38570 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 17:17:41 +00:00
Jeremy Felt
d1ecd5ba4c Bump 4.6 branch to 4.6.1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38549 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 14:56:42 +00:00
Jeremy Felt
e430dc73c9 Media: Sanitize upload filename.
Merge of [38538] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38539 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 13:56:13 +00:00
Jeremy Felt
6f4e5aa08f Comments: Revert [38497]
Restore direct SQL query when fetching descendants.

See #37696, #37966.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38537 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 13:40:36 +00:00
Pascal Birchler
4930623000 Upgrade/Install: Sanitize file name in File_Upload_Upgrader.
Merge of [38524] to the 4.6 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38525 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-06 17:28:20 +00:00
Jeremy Felt
ea621b3d5b Post 4.6.1-RC1 version bump
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38499 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-01 15:40:08 +00:00
Jeremy Felt
2cc58efb40 WordPress 4.6.1-RC1
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38498 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-01 15:27:53 +00:00
Jeremy Felt
ba5bcd608d Comments: Don't do direct SQL query when fetching decendants.
The SQL query was built using the clauses compiled when querying for
top-level comments. But in cases where the top-level comment query
results are already in the cache, the SQL clauses are not built, and
so are unavailable for `fill_descendants()`. Instead, we call
`get_comments()`, using modified versions of the parameters passed
to the main `WP_Comment_Query` class.

Merge of [38446] to the 4.6 branch.

Props boonebgorges, Akeif, Rarst for testing.
Fixes #37696.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38497 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-01 15:14:16 +00:00
Jeremy Felt
6bc6c68bb6 TinyMCE: fix toolbars alignment in RTL.
Merge of [38349] to the 4.6 branch.

Props azaozz, geminorum for testing.
Fixes #37760.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38488 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 23:42:15 +00:00
Jeremy Felt
b0e40e0231 Editor: fix jumpiness on pressing backspace and delete in the Text editor.
Merge of [38426] to the 4.6 branch.

Props azaozz.
Fixes #37690.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38487 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 23:12:55 +00:00
Jeremy Felt
1991b01130 HTTP: Handle an edgecase within the URI parsing library included in Requests, where if a double slash exists at the start of the path the URL is passed to cURL malformed.
Merge of [38429] to the 4.6 branch.

Props dd32, flixos90 for initial patch.
Fixes #37733.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38485 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 22:00:53 +00:00
Jeremy Felt
dfef301082 Post Thumbnails: Prevent post thumbnail previews from spilling into other images.
After [38118], when previewing a page with a secondary loop, all post
thumbnails would be filtered to display the post thumbnail for the
page being previewed. This ensures `_wp_preview_post_thumbnail_filter()`
is only applied if the `$post_id` of the post meta being filtered is
equal to the post or page being previewed.

Merge of [38433] to the 4.6 branch.

Props swissspidy, joemcgill.
Fixes #37697.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38476 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 18:43:21 +00:00
Jeremy Felt
2a0118aab1 Upgrade/Install: After [37687], fix the number of params passed to the upgrade hooks.
`wp_version_check()`, `wp_update_plugins()` and `wp_update_themes()` are all originally hooked to the `upgrader_process_complete` action with zero arguments passed to them. Zero arguments should be passed when re-adding them after translation updates, otherwise the sky will fall.

Merge of [38415] to the 4.6 branch.

Props ionutst, gitlost, swissspidy.
Fixes #37731.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38475 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 18:11:56 +00:00
Jeremy Felt
618795de08 Script Loader: Close the <link> tag in wp_resource_hints().
Adjusts tests to match markup change.

Merge of [38443] and [38447] to the 4.6 branch.

Props Chaos Engine, SergeyBiryukov, swissspidy.
Fixes #37800.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38473 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 17:25:03 +00:00
Jeremy Felt
5b0182885c TinyMCE: change the default font for the vi locale to the same stack as he_IL.
Merge of [38427] to the 4.6 branch.

Props azaozz, nmt90 for reporting and testing.
Fixes #37755.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38472 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 17:16:01 +00:00
Dion Hulse
43c0908979 HTTP: Accept non-string values in cookies, fixing a regression since 4.5.
Props swissspidy.
Merges [38430] to the 4.6 branch.
Fixes #37768.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38461 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 06:06:34 +00:00