When editing a gallery, images can now be added from the media library.

Enables the "Add images from media library" button when editing. The UX has room for improvement, but it's a start.

see #21390, #21809.


git-svn-id: https://develop.svn.wordpress.org/trunk@22157 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-10-10 09:30:22 +00:00
parent a04930b340
commit 04143f286a
3 changed files with 59 additions and 22 deletions
+3 -1
View File
@@ -1358,7 +1358,9 @@ function wp_print_media_templates( $attachment ) {
<span class="count"><%- count %></span>
</div>
<a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
<% if ( clearable ) { %>
<a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
<% } %>
</script>
<script type="text/html" id="tmpl-editor-attachment">