Ticket #44675: 44675.2.selected.media.permanently.diff
File 44675.2.selected.media.permanently.diff, 4.1 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
151 151 $actions['untrash'] = __( 'Restore' ); 152 152 $actions['delete'] = __( 'Delete Permanently' ); 153 153 } else { 154 $actions['trash'] = _ x( 'Trash', 'verb' );154 $actions['trash'] = __( 'Move to Trash' ); 155 155 } 156 156 } else { 157 157 $actions['delete'] = __( 'Delete Permanently' ); -
src/wp-admin/includes/meta-boxes.php
399 399 <?php 400 400 if ( current_user_can( 'delete_post', $post->ID ) ) { 401 401 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 402 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . _ x( 'Trash', 'verb' ) . '</a>';402 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Move to Trash' ) . '</a>'; 403 403 } else { 404 404 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 405 405 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>'; -
src/wp-includes/media-template.php
480 480 <# if ( ! data.uploading && data.can.remove ) { #> | 481 481 <?php if ( MEDIA_TRASH ) : ?> 482 482 <# if ( 'trash' === data.status ) { #> 483 <button type="button" class="button-link untrash-attachment"><?php _e( ' Untrash' ); ?></button>483 <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button> 484 484 <# } else { #> 485 <button type="button" class="button-link trash-attachment"><?php _e x( 'Trash', 'verb' ); ?></button>485 <button type="button" class="button-link trash-attachment"><?php _e( 'Move to Trash' ); ?></button> 486 486 <# } #> 487 487 <?php else : ?> 488 488 <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> … … 591 591 <# if ( ! data.uploading && data.can.remove ) { #> 592 592 <?php if ( MEDIA_TRASH ) : ?> 593 593 <# if ( 'trash' === data.status ) { #> 594 <button type="button" class="button-link untrash-attachment"><?php _e( ' Untrash' ); ?></button>594 <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button> 595 595 <# } else { #> 596 <button type="button" class="button-link trash-attachment"><?php _ex( ' Trash', 'verb' ); ?></button>596 <button type="button" class="button-link trash-attachment"><?php _ex( 'Move to Trash', 'verb' ); ?></button> 597 597 <# } #> 598 598 <?php else : ?> 599 599 <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> -
src/wp-includes/media.php
3681 3681 'warnBulkTrash' => __( "You are about to trash these items.\n 'Cancel' to stop, 'OK' to delete." ), 3682 3682 'bulkSelect' => __( 'Bulk Select' ), 3683 3683 'cancelSelection' => __( 'Cancel Selection' ), 3684 'trashSelected' => __( ' Trash Selected' ),3685 'untrashSelected' => __( ' Untrash Selected' ),3686 'deleteSelected' => __( 'Delete Selected ' ),3684 'trashSelected' => __( 'Move Selected Media to Trash' ), 3685 'untrashSelected' => __( 'Restore Selected Media from Trash' ), 3686 'deleteSelected' => __( 'Delete Selected Media Permanently' ), 3687 3687 'deletePermanently' => __( 'Delete Permanently' ), 3688 3688 'apply' => __( 'Apply' ), 3689 3689 'filterByDate' => __( 'Filter by date' ),