The 4.0 branch is 4.0.1-alpha.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30248 602fd350-edb4-49c9-b593-d223f7449a82
Plugin search: Wrap results in a form to fix pagination's `paged` input field.

Merges [29829] to the 4.0 branch.

props jesin, ocean90.
fixes #18724.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30249 602fd350-edb4-49c9-b593-d223f7449a82
Quicktags: move focusing the editor after inserting content to the end of the code blocks.

Merges [29884] to the 4.0 branch.

Fixes a bug in Chrome where both the textarea and the window may auto-scroll to unexpected position on clicking a Quicktags button.

props azaozz, avryl.
fixes #29944.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30250 602fd350-edb4-49c9-b593-d223f7449a82
Editor-expand: reset the editor height after the window is resized.

Merges [29886] to the 4.0 branch.

props azaozz.
fixes #29952.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30251 602fd350-edb4-49c9-b593-d223f7449a82
Upgrade MediaElement to 2.15.1.

Merges [29733] to the 4.0 branch.

Changes from 2.15.0:
https://github.com/johndyer/mediaelement/compare/2.15.0...2.15.1

Continues to revert upstream commit b7f82b4 to restore the status quo for Chromium support.

props wonderboymusic.
fixes #29620.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30252 602fd350-edb4-49c9-b593-d223f7449a82
Revert [28610] in order to avoid infinite redirect loops on reverse proxies which proxy from HTTPS to HTTP.

Merges [30090] to the 4.0 branch.

fixes #28610.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30253 602fd350-edb4-49c9-b593-d223f7449a82
Make sure we're on the media grid page before calling wp.media().

Merges [29725] to the 4.0 branch.

props azaozz.
fixes #29520.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30254 602fd350-edb4-49c9-b593-d223f7449a82
Create new $wp_roles object in install_blog() to avoid protected _init() call

Merges [30242] to the 4.0 branch.

Our call to `$wp_roles->_init()` relied on the `__call()` method in `WP_Roles` to handle the link to the protected method. This works back to PHP 5.2.9, when a bug was fixed allowing access to protected methods through this exact approach.

`install_blog()` needs a fresh `$wp_roles` object after `populate_roles()` resets everything in its path. We can create this new object from scratch, effectively doing the same thing with the call to `_init()` via the constructor.

props jeremyfelt.
fixes #29692.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30255 602fd350-edb4-49c9-b593-d223f7449a82
Editor expand: hide TinyMCE float panels and tooltips when scrolling.

Merges [29738] to the 4.0 branch.

props avryl.
see #29516.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30256 602fd350-edb4-49c9-b593-d223f7449a82
TinyMCE wpView: when pasting/inserting content before a view, add new paragraph above it and insert the content there.

Merges [29766] to the 4.0 branch.

props avryl.
fixes #29380.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30257 602fd350-edb4-49c9-b593-d223f7449a82
Make sure the $parent argument of wp_insert_attachment() still works as expected after [28579].

Merges [29745] to the 4.0 branch.

props jesin, dikiy_forester.
fixes #29646.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30258 602fd350-edb4-49c9-b593-d223f7449a82
Avoid PHP notices in media modal caused by orphaned attachments.

Merges [29724] to the 4.0 branch.

props SergeyBiryukov.
fixes #29566.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30259 602fd350-edb4-49c9-b593-d223f7449a82