WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/05/2015 05:34:40 AM (7 years ago)
Author:
wonderboymusic
Message:

Allow attachments to be Detached from their parent in media grid and list modes.

See #6820.

File:
1 edited

Legend:

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

    r31546 r31619  
    418418                        <# } else { #>
    419419                            <span class="value">{{ data.uploadedToTitle }}</span>
     420                        <# } #>
     421                        <# if ( data.nonces.edit ) { #>
     422                        <a class="detach-from-parent" data-id="{{ data.id }}" href="#">(<?php _e( 'Detach' ); ?>)</a>
    420423                        <# } #>
    421424                    </label>
Note: See TracChangeset for help on using the changeset viewer.