Media JS: Add JIT composite library creation/destruction to states to allow for dynamically excluded Attachment models. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media JS: Use correct variable name when binding to the `change:library` event. see [22477], #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
HiDPI rating stars. props chexee. see #21019.



git-svn-id: http://core.svn.wordpress.org/trunk@22479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Add batch insertion workflow. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Final HiDPI tweaks. Don't use rss-2x.png on a front-end widget. Improve selectors for favicons in the toolbar to avoid breaking existing images. Remove unnecessary RTL styles. FIXES #21019.



git-svn-id: http://core.svn.wordpress.org/trunk@22481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: In the main media library in the insert media dialog, only show attachment display settings when one attachment is selected. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Consult the queried object for the post type. props mdgl, MikeHansenMe, wonderboymusic. fixes #21648.



git-svn-id: http://core.svn.wordpress.org/trunk@22483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Properly set upload context when uploading a background image through the customizer. props kovshenin. fixes #22215.



git-svn-id: http://core.svn.wordpress.org/trunk@22484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Rename the "Beta Media" button to "Add Media". fixes #19956, see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Translate. see #19956.



git-svn-id: http://core.svn.wordpress.org/trunk@22486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Ensure search box reflects actual search state.

* Also switches search box to use `<input type="search" />` to take advantage of browser UI to clear the field.

fixes #22315, see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Allow wp_plupload_default_settings() to be called multiple times without doubling up the output. see #22060.



git-svn-id: http://core.svn.wordpress.org/trunk@22488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Add wp_enqueue_media to easily include all media dependencies.

Also, media templates now print on `wp_footer`.

props sushkov. fixes #22060, see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Ensure media and its dependencies are included when a post type supports the editor or featured images. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Pinking shears. see #21283.


git-svn-id: http://core.svn.wordpress.org/trunk@22491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Customizer: Restrict image control uploaders to only allow image file types. see #22149.


git-svn-id: http://core.svn.wordpress.org/trunk@22492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media: Add size dropdown to attachment display settings in the media modal. fixes #22206, see #21390.


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