QuickPress: add some JS to set wpActiveEditor when the title or content is focused, fixes #22021

git-svn-id: http://core.svn.wordpress.org/trunk@22517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255.



git-svn-id: http://core.svn.wordpress.org/trunk@22518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Customizer uploader control: Pass arrays of extensions around instead. see #22149.



git-svn-id: http://core.svn.wordpress.org/trunk@22519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
URLs should be esc_url(), not esc_attr().



git-svn-id: http://core.svn.wordpress.org/trunk@22520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Don't allow non-image uploads for custom headers and backgrounds. props kovshenin. fixes #22149.



git-svn-id: http://core.svn.wordpress.org/trunk@22521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Update the JS version of the shortcode regex to match [22382]. props SergeyBiryukov. fixes #17657.



git-svn-id: http://core.svn.wordpress.org/trunk@22522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Backwards compatibility for media_upload_tabs.

* Adds `createIframeStates()` to the `MediaFrame` view. It creates states and bindings for the `media_upload_tabs` output, and is included on `MediaFrame.Post` by default.
* Hijacks `tb_remove()` when the media modal is open to ensure the modal closes correctly.
* Adds a `chromeless` parameter to thickbox media tab URLs to render the UI without the old row of tabs.

see #22186, #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Don't unnecessarily translate media upload tab strings. see #22186.



git-svn-id: http://core.svn.wordpress.org/trunk@22524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
POT, generated from r22524

git-svn-id: http://core.svn.wordpress.org/trunk@22525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
POT, generated from r22524

git-svn-id: http://core.svn.wordpress.org/trunk@22526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
POT, generated from r22524

git-svn-id: http://core.svn.wordpress.org/trunk@22527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Keep the selected featured image in the media modal in sync with the page. fixes #22404, see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Add instructions to drag and drop to reorder images on gallery and batch edit pages.

Removes search boxes from these pages as well.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Account for a race condition when deleting an edit gallery frame. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add comments to time intervals we cannot express with the constants. Fix a comment. props SergeyBiryukov. fixes #20987.



git-svn-id: http://core.svn.wordpress.org/trunk@22531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Add title, caption, and alt text, and attachment info to sidebar.

* Improve sidebar styles.
* Separate the hybrid title/caption field.
* Improve the sidebar image thumbnail.
* Remove filenames from inside the non-image icon thumbnail.
* Properly sync title/caption/alt.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Watch additional search events. Properly captures clearing the search box. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Allow the modal sidebar to scroll. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Automatically strip any non-image items from the collection when creating a gallery.

Also changes the rules for when the "new gallery" button shows:
* More than two items must be selected.
* At least one of them must be an image.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Admin menu: sync the .folded and @media .auto-fold styles, fixes #21998

git-svn-id: http://core.svn.wordpress.org/trunk@22536 1a063a9b-81f0-0310-95a4-ce76da25c4cd