35094 Commits

Author SHA1 Message Date
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
Dion Hulse
1f0ab7dfb0 Bootstrap: Check that ini_get_all() exists before calling it, allows us to work around hosts who disable the function for "security purposes".
Merges [38431] to the 4.6 branch.
Fixes #37680.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38460 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-31 06:05:06 +00:00
Gary Pendergast
d839c627ac Database: Don't force an unsupported character set that previously would've silently failed.
[37320] corrected some behaviour in how PHP and MySQL character sets are matched up. This was correct, but had the side effect of causing some incorrectly configured sites to start failing.

Prior to [37320], if `DB_CHARSET` was set to `utf8mb4`, but the PHP version didn't support `utf8mb4`, it would fall back to the default character set - usually `latin1`. After [37320], the `SET NAMES` query would force MySQL to treat the connection character set as `utf8mb4`, even if PHP wasn't able to understand it.

By checking if `mysqli_set_charset()` succeeded, we can simulate the old behaviour, while maintaining the fix in [37320].

Merge of [38441] to the 4.6 branch.

Props danielkanchev fo helping to diagnose this issue.
Fixes #37689.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38442 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-30 07:41:11 +00:00
Gary Pendergast
4f7b284fbe Database: Ensure that variables are defined correctly.
There were some cases where some local variables in `wpdb::init_charset()` could be undefined when they were used.

Merge of [38439] to the 4.6 branch.

Props Frozzare.
Fixes #37683.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38440 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-30 07:16:36 +00:00
Boone Gorges
de57dece83 In is_object_in_term(), return error object rather than caching it.
This change prevents an error object from being stored in the cache,
and prevents notices from being thrown when plucking term IDs to put
into the relationship cache.

See #32044, #36814.

Merges [38277] to the 4.6 branch.

Props rpayne7264.
Fixes #37721.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38346 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-24 09:19:49 +00:00
Pascal Birchler
6d553e5ec3 External Libraries: Update minified version of jquery.masonry.js.
WordPress maintains the minified version of jquery.masonry.js since there is no official build, however it has been excluded from grunt's minification process. This adds a minification task to grunt, adds it to the precommit hook for JS, minifies the file, and bumps the version on jquery.masonry.min.js. The change to the non minified version was introduced in [38261].

Merge of [38276] and [38281] to the 4.6 branch.

Fixes #37720.  See #37666.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38339 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-23 16:07:18 +00:00
Pascal Birchler
95496a269a Requests: Update to Requests master (fb5b517) which corrects a logic inversion in the cURL transport checks.
Previously if a host had only disabled one of `curl_init()` or `curl_exec()` it wouldn't get detected correctly by Requests, which caused cURL warnings for users on an affected host.

Merge of [38274] to the 4.6 branch.

Fixes #37700.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38338 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-23 15:54:06 +00:00
Boone Gorges
d07d051220 Mail: Don't set Sender field when setting From.
[38058] changed `wp_mail()` so that it used PHPMailer's `setFrom()`
method rather than setting the From and FromName headers directly. See
behavior of setting the `Sender` field. This causes `mail` to be
called with the `-f` flag, which causes outgoing email to fail on some
server environments.

Merges [38286] to the 4.6 branch.

Props Clorith, iandunn, DrewAPicture.
Fixes #37736. 


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38287 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-20 02:20:04 +00:00
Dominik Schilling (ocean90)
3b392f7406 The 4.6 branch is now 4.6.1-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38271 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-16 20:38:47 +00:00
Dominik Schilling (ocean90)
d7ef744792 WordPress 4.6.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38269 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-16 18:18:49 +00:00
Dominik Schilling (ocean90)
dea1aec9dc About Page: Add release video and move images to CDN.
Merge of [38267] to the 4.6 branch.

Props JerrySarcastic, rosso99, petya, hugobaeta, RoseAppleMedia.
See #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38268 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-16 18:00:08 +00:00
Dominik Schilling
0890ace98f Post WordPress 4.6 RC 4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38266 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-15 19:29:36 +00:00
Dominik Schilling
185b714ae7 WordPress 4.6 RC 4.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38265 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-15 19:21:35 +00:00
Dominik Schilling
26f2b4c78c Post Thumbnails: Restore thumbnail support for media files.
* Allow to add/remove a featured image to `attachment:audio` and `attachment:video` post types, see [27657].
* Change conditionals to check for theme OR post type support.
* Add tests for #12922.

Broken in [37658].

Merge of [38263] to the 4.6 branch.

Props flixos90, joemcgill, DrewAPicture, wonderboymusic.
See #12922.
See #37658.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38264 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-15 19:18:00 +00:00
Aaron Jorbin
2590f45b6a External Libraries: Update Masonry shim to prevent error using isAnimated option
Merges [38261] to the 4.6 branch.

The isAnimated option throws an error and causes Masonry to stop functioning. Masonry.prototype.options is no longer defined in 3.3.2, this.options is and does the same. Masonry was updated to 3.3.2 in [37891].

Reported upstream: https://github.com/desandro/masonry-v2-3-shim/pull/1

Props stephenharris, ocean90, azaozz for testing and second sign off.
Fixes #37666.
See #32802.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38262 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-15 18:21:13 +00:00
Dominik Schilling
fbed590cae Post WordPress 4.6 RC 3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38260 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 19:54:06 +00:00
Dominik Schilling
ca6204e866 WordPress 4.6 RC 3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38259 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 19:48:44 +00:00
Dominik Schilling
67a4f44e9b About Page: Enhance responsive images.
* Add `srcset` and `sizes` to the mobile image for streamlined updates.
* Modify the order of image candidate strings in each `srcset` to address a bug in iOS8 where the first candidate will always be selected when using `w` descriptors, see #35030.

Merge of [38257] to the 4.6 branch.

Props joemcgill.
See #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38258 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 19:32:16 +00:00
Dominik Schilling
df44da314b Script Loader: Fix protocol-relative URLs for the preconnect relation type.
`wp_resource_hints()` parses the URL for the `preconnect` and `dns-prefetch` relation types to ensure correct values for both. While protocol-relative URLs are supported for `dns-prefetch`, the double slash was lost for `preconnect`.

Merge of [38255] to the 4.6 branch.

Props swissspidy, peterwilsoncc.
Props azaozz for review.
See #37652.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38256 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 18:39:39 +00:00
Aaron Jorbin
729ea0a9f2 Bootstrap/Load: Revert Plugin Global restoration around advance-cache.php.
Merges [38251] to the 4.6 branch.

First added in [37588] and later modified in [38224], the idea was to ensure that filters/actions added before `advance-cache.php` would not disappear if `advance-cache.php` overloaded the filters/actions with code such as `$wp_filter = array()`. This is an edge case and one that there is no documented case of existing.

This restores the behavior from WordPress 4.5 and before. It is strongly encouraged that developers using `advance-cache.php` to use the Plugins API that is available before the loading of `advance-cache.php` rather than directly interacting with any of the globals.

Props azaozz, jorbin, dd32 for review, pento for review, westi for investigation, ipstenu for research.

See #36819.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38252 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 16:01:09 +00:00
Dominik Schilling
289d5ac855 About Page: Fix punctuation errors in two strings.
Merge of [38248] to the 4.6 branch.

See #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38249 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 20:53:11 +00:00
Dominik Schilling
d7792e4910 Post WordPress 4.6 RC 2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38247 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 00:21:48 +00:00
Dominik Schilling
a8c96a14e4 WordPress 4.6 RC 2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38246 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 00:15:44 +00:00
Dominik Schilling
07f754e291 About Page: Updates for 4.6.
Merge of [38213], [38215], [38234], and [38244] to the 4.6 branch.

Props hugobaeta, Ipstenu, SergeyBiryukov, Presskopp, jeremyfelt, afragen, helen, Clorith, macmanx, DrewAPicture, voldemortensen, jorbin, joemcgill, MattyRob, ocean90.
Fixes #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38245 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-10 23:56:14 +00:00