Make WordPress Core


Ignore:
Timestamp:
10/10/2012 09:30:22 AM (11 years ago)
Author:
koopersmith
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r22154 r22157  
    13591359            <span class="count"><%- count %></span>
    13601360        </div>
    1361         <a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
     1361        <% if ( clearable ) { %>
     1362            <a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
     1363        <% } %>
    13621364    </script>
    13631365
Note: See TracChangeset for help on using the changeset viewer.