Changeset 29491
- Timestamp:
- 08/14/2014 06:50:04 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29490 r29491 5719 5719 }; 5720 5720 5721 if ( media.view.settings.mediaTrash ) { 5721 if ( media.view.settings.mediaTrash 5722 && this.controller.activeModes.where( { id: 'grid' } ).length ) { 5722 5723 filters.trash = { 5723 5724 text: l10n.trash, … … 6500 6501 event.preventDefault(); 6501 6502 6502 if ( media.view.settings.mediaTrash ) { 6503 if ( media.view.settings.mediaTrash 6504 && 'edit-metadata' === this.controller.content.mode() ) { 6503 6505 this.model.set( 'status', 'trash' ); 6504 6506 this.model.save().done( function() { -
trunk/src/wp-includes/media-template.php
r29490 r29491 509 509 <# if ( ! data.uploading && data.can.remove ) { #> 510 510 <?php if ( MEDIA_TRASH ): ?> 511 <# if ( 'trash' === data.status ) { #> 512 <a class="untrash-attachment" href="#"><?php _e( 'Untrash' ); ?></a> 513 <# } else { #> 511 514 <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a> 515 <# } #> 512 516 <?php else: ?> 513 517 <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>
Note: See TracChangeset
for help on using the changeset viewer.