34082 Commits

Author SHA1 Message Date
Jeremy Felt
036285de50 Admin: Allow for the consistent filtering of auth_redirect_scheme
Merge of [37651] to the 4.5 branch.

See #37047.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37757 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:09:51 +00:00
Pascal Birchler
aac1185ea9 Menus: Support nested array variables in POST data when saving menus.
[36510] allowed larger menus to be created in the Edit Menu screen by JSON-encoding the entire form into a single input field. However, it did not correctly handle nested arrays.

This introduces a new `_wp_expand_nav_menu_post_data()` helper function to handle this POST data which uses `array_replace_recursive()` internally. Since the latter is only available on PHP 5.3+, we add a compatibility function to ensure PHP 5.2 support.

Merge of [37748] and [37750] to the 4.5 branch.

Props ericlewis, neverything, swissspidy.
Fixes #36590. See #14134.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37754 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-20 19:49:49 +00:00
Aaron Jorbin
cf248314d9 Output node and npm versions on travis.
In order to make local debugging of travis easier, output the npm and node versions when travis runs.

[37730] for 4.5.

see #37116. 


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37733 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 17:31:08 +00:00
Pascal Birchler
edb9596c6b Embeds: Enforce a valid post ID when embedding a post from the current site.
Otherwise `wp_filter_pre_oembed_result()` could erroneously return the HTML of the current post instead of the intended result.

Merge of [37729] to the 4.5 branch.

Props kraftbj.
See #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37732 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 17:29:51 +00:00
Dominik Schilling (ocean90)
86edff01d6 Customize: Separate preview and actions in the site icon control.
Reverts [37456] to allow users to remove/change a site icon even if the attachment has corrupt/missing data about sizes.

Merge of [37724] to the 4.5 branch.

See #36749.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37725 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 09:52:36 +00:00
Pascal Birchler
b4e06aa412 Fix tests after [37709].
Avoids using `assertNotFalse()` which is only available in PHPUnit 4.0 and above.

See [37708], [37710].
See #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37711 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-15 12:23:13 +00:00
Pascal Birchler
d60c6d1206 Embeds: Improve performance when embedding a post of the current site.
When the post being embedded is from the same site, there's no reason to do an HTTP request for it. The data can be fetched directly using `get_oembed_response_data()`.

Merge of [37708] to the 4.5 branch.

Fixes #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37709 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-15 11:31:12 +00:00
Dominik Schilling (ocean90)
d9a1e36886 Database: dbDelta() will no longer try to downgrade the size of TEXT and BLOB columns.
When upgrading to `utf8mb4`, `TEXT` fields will be upgraded to `MEDIUMTEXT` (and likewise for all other `*TEXT` and `*BLOB` fields). This is to allow for the additional space requirements of `utf8mb4`.

On the subsequent upgrade, after the `utf8mb4` upgrade, `dbDelta()` would try and downgrade the fields to their original size again. At best, this it a waste of time, at worst, this could truncate any data larger than the original size. There's no harm in leaving them at their original size, so let's do that.

Merge of [37525] to the 4.5 branch.

Props pento.
See #36748.



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37606 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:58:36 +00:00
Dominik Schilling (ocean90)
62efcb9853 TinyMCE: Fix inline toolbar positioning.
Introduced in [37000].
See 2fb8aa48e9.
See 5734a8d880.

Merge of [37559] to the 4.5 branch.

Props iseulde.
Fixes #36876.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37605 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:31:17 +00:00
Dominik Schilling (ocean90)
dd25b54029 External Libraries: Update jQuery Migrate to 1.4.1.
http://blog.jquery.com/2016/05/19/jquery-migrate-1-4-1-released-and-the-path-to-jquery-3-0/

Unquoted selectors for attribute selectors should function once again (and output a warning so that plugins and themes using them can update).

Merge of [37472] to the 4.5 branch.

Props jorbin.
Fixes #36892.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37604 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:24:46 +00:00
Dominik Schilling (ocean90)
57a94b8bce External Libraries: Update jQuery to 1.12.4.
Release post: https://blog.jquery.com/2016/05/20/jquery-1-12-4-and-2-2-4-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.3...1.12.4

Merge of [37433] and [37526] to the 4.5 branch.

Fixes #36533.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37528 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-23 09:33:24 +00:00
Dominik Schilling (ocean90)
496e06fafe Media: Remove medium_large size from $whitelist_options['media'] in options.php.
The `medium_large_size_w` and `medium_large_size_h` options were added to the
`$whitelist_options['media']` in options.php in [35479], which causes both options
to be set to `0` when the media settings are changed. When this occurs, the
medium_large image size will no longer be created when an image is uploaded.

Since these options aren't meant to be updated via the settings UI, they can be
safely removed from the whitelist.

Merge of [37435] to the 4.5 branch.

Props joemcgill.
Fixes #36531.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37457 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:39:15 +00:00
Dominik Schilling (ocean90)
e000bcb118 Embeds: Change attachment metadata condition to prevent a warning in the embeds template.
Merge of [37452] to the 4.5 branch.

Props swissspidy.
See #35237.
Fixes #36838.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37455 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:37:10 +00:00
Dominik Schilling (ocean90)
ebeaa8db3d TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button.
Merge of [37301] to the 4.5 branch.

Props iseulde.
Fixes #36637.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37454 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:35:23 +00:00
Dominik Schilling (ocean90)
7dc9387dd8 Customize: Handle filtering sidebars_widgets when the underlying option is non-existent.
Fixes warning related to a non-array argument for `array_merge()` in `WP_Customize_Widgets::customize_register()`. 

Merge of [37352] to the 4.5 branch.

See [37166].
See #36389.
Fixes #36660.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37453 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:33:26 +00:00
Dominik Schilling (ocean90)
e64728b9d2 Bootstrap/Load: Silence ini_set() in wp_debug_mode().
Merge of [37448] to the 4.5 branch.

Props SergeyBiryukov.
Fixes #36708.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37451 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:30:02 +00:00
Dominik Schilling (ocean90)
9be43f8fc9 Customize: Remove use of reserved word default in Underscore template which breaks IE8.
Fixes regression introduced in [36769].

Merge of [37417] to the 4.5 branch.

Props adamsilverstein.
Fixes #36793.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37450 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:28:19 +00:00
Aaron Jorbin
7ad2ba8904 Correct usage of Covers for Tests_Update_Comment_Count_Now
When @covers is used with a plain alphanumeric string, PHPUnit assumes that it is covering a class. If there is no class, it fails and exits rather than continuing to generate coverage. To cover a global function, the name must start with `::`.  See https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers

See #35060, #36867



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37445 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 17:51:17 +00:00
Dominik Schilling (ocean90)
28826f98e5 The 4.5 branch is now 4.5.3-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37420 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-12 11:53:57 +00:00
Dominik Schilling (ocean90)
fddae00857 Bump 4.5 branch to 4.5.2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37384 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-06 18:10:27 +00:00
Nikolay Bachiyski
e11fb6ae50 External Libraries: Update plupload from upstream
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37382 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-06 18:00:41 +00:00
Dominik Schilling (ocean90)
f000a879ae External Libraries: Update MediaElement.js from upstream.
Merge of [37370] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37371 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-06 17:51:49 +00:00
Helen Hou-Sandi
35d105e39e The 4.5 branch is now 4.5.2-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37312 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-26 20:24:13 +00:00
Pascal Birchler
585faf51f8 Bump 4.5 branch to version 4.5.1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37310 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-26 17:51:22 +00:00
Gary Pendergast
2cf27754fd Post 4.5.1-RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37295 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 05:56:54 +00:00
Gary Pendergast
e3090c0472 4.5.1-RC2
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37294 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 05:52:00 +00:00
Gary Pendergast
329664a70a Database: Suppress connection error messages when WP_DEBUG isn't enabled.
This is a partial revert of [35860], which has been causing un-catchable warnings to be generated on some server configurations.

Merge of [37292] to the 4.5 branch.

Fixes #36629.
See #21870.



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37293 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 05:23:40 +00:00
Andrew Ozz
4797b0d56a Post 4.5.1-RC version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37291 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 01:25:48 +00:00
Andrew Ozz
cac3e01d25 4.5.1-RC
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37290 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 01:08:42 +00:00
Dominik Schilling (ocean90)
32b4f3ee2e Media: Remove an extra quote when sending a link of a media file to the editor.
Introduced in [37035].

Merge of [37288] to the 4.5 branch.

Props joemcgill, swissspidy, boonebgorges.
Fixes #36578.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37289 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-21 21:33:14 +00:00
Dominik Schilling (ocean90)
eadc8c153f Media: Don't cache the results of wp_mkdir_p() in a persistent cache.
To improve the performance of `wp_upload_dir()` the result of `wp_mkdir_p()` was stored in a persistent cache, introduced in [36565]. But this becomes an issue when WordPress is scaled horizontally. You may end up caching a value for a server where the directory doesn't exist which will prevent further uploads on other servers because of the persistent cache.
The fix is to use a non-persistent cache.

Merge of [37285] to the 4.5 branch.

Props azaozz, ocean90.
See #34359.
Fixes #36621.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37286 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-21 20:17:32 +00:00
John Blackbourn
20ed735d92 Feeds: Revert [36230] which removed the rss-http feed content type. Removing this means that any feeds which are using this feed content type are now being served as application/octet-stream instead of text/xml.
See #36620

Merges [37282] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37284 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-21 19:28:00 +00:00
Dominik Schilling (ocean90)
35c68c7376 Update svn:mergeinfo for [37274].
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37275 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-21 09:44:02 +00:00
Dominik Schilling (ocean90)
e91c3c7ddb Rewrite Rules: After [36953], correctly replace existing rules on IIS when updating them.
Merge of [37273] to the 4.5 branch.

Props WiZZarD_.
Fixes #36506.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37274 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-21 09:36:50 +00:00
Gary Pendergast
fe06f5a05d Emoji: The diversity support test was incorrectly passing on all browsers.
[37028] missed some logic to capture the base emoji skin tone, to compare to the modified emoji skin tone. This caused all browsers to report that they supported skin tone modifiers, regardless of whether they actually did.

Merge of [37256] to the 4.5 branch.

Fixes #36604.



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37257 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-20 14:07:33 +00:00
Andrew Ozz
519b615444 TinyMCE:
- Update to 4.3.10, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt.
- Backport fix for typing the Euro sign on Windows: 
5462e3c1dd.
- Backport copy/paste typo fix for the textcolor plugin: 1fc5a733e9.

Merges [37242] and [37251] to the 4.5 branch.
Fixes #36545 for 4.5.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37253 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-19 23:23:05 +00:00
Dominik Schilling (ocean90)
faf89dccd4 Themes: Revert [36112]
Adding the `singular` class per default to the list of body classes is breaking the layout of Twenty Eleven and other themes. Twenty Eleven adds the `singular` class only to single pages if the page doesn't use specific page templates.

Merge of [37249] to the 4.5 branch.

Props flixos90, swissspidy.
Fixes #36510.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37250 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-19 21:27:01 +00:00
Aaron Jorbin
d8d8a51c6c Use px instead of in in device preview
Merges [37247] to the 4.5 branch

Props celloexpressions
Fixes #36457


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37248 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-19 20:53:42 +00:00
Dominik Schilling (ocean90)
35d5010de0 TinyMCE, inline link: Fix VoiceOver in Safari for search suggestions.
Merge of [37228] to the 4.5 branch.

Props afercia.
Fixes #36458.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37246 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-19 20:47:36 +00:00
Dominik Schilling (ocean90)
15f43a732e Media: Resolve fatal error on resize with ImageMagick < 6.4.6
Improper checking for 'Imagick::ALPHACHANNEL_UNDEFINED' and
'Imagick::ALPHACHANNEL_OPAQUE' caused fatal errors for some users
with Imagick when compiled against ImageMagick < 6.4.6, when these
constants were introduced. Fixes these compatibility checks.

Merge of [37192] to the 4.5 branch.

Props gblsm.
Fixes #36501.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37245 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-19 20:45:35 +00:00
Helen Hou-Sandi
5043c2aaa8 Version strings typically should contain a revision number.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37187 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 01:39:39 +00:00
Aaron Jorbin
a885ccd6a6 Add npm-shrinkwrap.json to 4.5
By shrinkwraping our dependencies, the same versions of everything will be installed no matter what rules the dependency package.json has specificed.

See #30787.
Fixes #36498.



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37186 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-13 01:35:24 +00:00
Helen Hou-Sandi
f037856d84 The 4.5 branch is now 4.5.1-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37182 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 19:55:22 +00:00
Helen Hou-Sandi
f99e80da10 Branch 4.5.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37180 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 17:33:37 +00:00
Mike Schroder
cc5dc7f8d1 WordPress 4.5
git-svn-id: https://develop.svn.wordpress.org/trunk@37179 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 17:28:55 +00:00
Mike Schroder
80fc954dd2 About Page: Add Final Video
Props siobhan, melchoyce, hugobaeta, rosso99.

git-svn-id: https://develop.svn.wordpress.org/trunk@37178 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 17:24:37 +00:00
Mike Schroder
d90c3a9f1e Post 4.5-RC3 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@37177 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 19:12:39 +00:00
Mike Schroder
4de5a113a0 4.5-RC3
git-svn-id: https://develop.svn.wordpress.org/trunk@37176 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 18:30:45 +00:00
Dominik Schilling (ocean90)
6008eca766 About Page: Use srcset and the w.org CDN for images.
Also, flip the "Selective Refresh" and "Smart Image Resizing" section and remove script enqueues which are no longer used.

Props joemcgill, melchoyce, ocean90.
Fixes #36173.

git-svn-id: https://develop.svn.wordpress.org/trunk@37175 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 17:45:17 +00:00
Dominik Schilling (ocean90)
303ecbe36a TinyMCE, inline link: Make styles for the autocomplete results available on front end.
Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.

Props azaozz, imath.
Fixes #36461.

git-svn-id: https://develop.svn.wordpress.org/trunk@37174 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-11 15:11:32 +00:00