mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Media Grid, support MEDIA_TRASH:
* Only use the special `trashAttachment` logic when in `edit-metadata` mode. * Don't support the `trash` filter in the Add Media modal for now. * Properly toggle trash/untrash logic in the Attachment Details sidebar See #29145. git-svn-id: https://develop.svn.wordpress.org/trunk@29491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -508,7 +508,11 @@ function wp_print_media_templates() {
|
||||
|
||||
<# if ( ! data.uploading && data.can.remove ) { #>
|
||||
<?php if ( MEDIA_TRASH ): ?>
|
||||
<# if ( 'trash' === data.status ) { #>
|
||||
<a class="untrash-attachment" href="#"><?php _e( 'Untrash' ); ?></a>
|
||||
<# } else { #>
|
||||
<a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a>
|
||||
<# } #>
|
||||
<?php else: ?>
|
||||
<a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user