Make WordPress Core


Ignore:
Timestamp:
03/07/2014 04:41:49 PM (13 years ago)
Author:
wonderboymusic
Message:

When MEDIA_TRASH is true, show the proper context in the attachment-details sidebar. Without this fix, it always showed "Delete Permanently."

Props toszcze.
Fixes #26783.

File:
1 edited

Legend:

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

    r27452 r27454  
    218218
    219219                                <# if ( ! data.uploading && data.can.remove ) { #>
    220                                         <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>
     220                                        <?php if ( MEDIA_TRASH ): ?>
     221                                                <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a>
     222                                        <?php else: ?>
     223                                                <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>
     224                                        <?php endif; ?>
    221225                                <# } #>
    222226
Note: See TracChangeset for help on using the changeset viewer.