Make WordPress Core

Ticket #38026: 38026.patch

File 38026.patch, 2.5 KB (added by mahu2401, 8 years ago)
  • src/wp-includes/css/media-views.css

     
    16851685        display: block;
    16861686}
    16871687
    1688 .media-modal .delete-attachment,
    1689 .media-modal .trash-attachment,
    16901688.media-modal .untrash-attachment {
    16911689        display: inline;
    16921690        padding: 0;
     1691        color: #0073aa;
     1692}
     1693
     1694.media-modal .untrash-attachment:focus {
     1695        color: #124964;
     1696}
     1697
     1698.media-modal .untrash-attachment:hover,
     1699.media-modal .untrash-attachment:active {
     1700        color: #00a0d2;
     1701}
     1702
     1703.media-modal .delete-attachment,
     1704.media-modal .trash-attachment {
     1705        display: inline;
     1706        padding: 0;
    16931707        color: #bc0b0b;
    16941708}
    16951709
     
    16961710.media-modal .delete-attachment:hover,
    16971711.media-modal .delete-attachment:focus,
    16981712.media-modal .trash-attachment:hover,
    1699 .media-modal .trash-attachment:focus,
    1700 .media-modal .untrash-attachment:hover,
    1701 .media-modal .untrash-attachment:focus {
     1713.media-modal .trash-attachment:focus {
    17021714        color: red;
    17031715}
    17041716
  • src/wp-includes/media-template.php

     
    428428                                <# if ( ! data.uploading && data.can.remove ) { #> |
    429429                                        <?php if ( MEDIA_TRASH ): ?>
    430430                                                <# if ( 'trash' === data.status ) { #>
    431                                                         <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button>
     431                                                        <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
     432                                                        <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button>
    432433                                                <# } else { #>
    433434                                                        <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button>
    434435                                                <# } #>
     
    529530                                <# if ( ! data.uploading && data.can.remove ) { #>
    530531                                        <?php if ( MEDIA_TRASH ): ?>
    531532                                        <# if ( 'trash' === data.status ) { #>
    532                                                 <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button>
     533                                                <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
     534                                                <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button>
    533535                                        <# } else { #>
    534536                                                <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button>
    535537                                        <# } #>