WordPress.org

Make WordPress Core

Ticket #20426: 20426.patch

File 20426.patch, 5.2 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/css/colors-classic.dev.css

     
    426426#adminmenu ul.wp-submenu a:hover,
    427427#the-comment-list .comment a:hover,
    428428#rightnow a:hover,
    429 #media-upload a.del-link:hover,
    430429div.dashboard-widget-submit input:hover,
    431430.subsubsub a:hover,
    432431.subsubsub a.current:hover,
     
    556555a,
    557556#adminmenu a,
    558557#the-comment-list p.comment-author strong a,
    559 #media-upload a.del-link,
    560558#media-items a.delete,
    561559.plugins a.delete,
    562560.ui-tabs-nav a {
     
    698696table.widefat span.spam a,
    699697#dashboard_recent_comments .delete a,
    700698#dashboard_recent_comments .trash a,
    701 #dashboard_recent_comments .spam a {
     699#dashboard_recent_comments .spam a,
     700#media-upload a.del-link {
    702701        color: #bc0b0b;
    703702}
    704703
     
    810809table.widefat .trash a:hover,
    811810table.widefat .spam a:hover,
    812811#dashboard_recent_comments .delete a:hover,
    813 #dashboard_recent_comments .trash a:hover
    814 #dashboard_recent_comments .spam a:hover {
     812#dashboard_recent_comments .trash a:hover,
     813#dashboard_recent_comments .spam a:hover,
     814#media-upload a.del-link:hover {
    815815        color: #f00;
    816816}
    817817
  • wp-admin/css/colors-fresh.dev.css

     
    433433#adminmenu ul.wp-submenu a:hover,
    434434#the-comment-list .comment a:hover,
    435435#rightnow a:hover,
    436 #media-upload a.del-link:hover,
    437436div.dashboard-widget-submit input:hover,
    438437.subsubsub a:hover,
    439438.subsubsub a.current:hover,
     
    563562a,
    564563#adminmenu a,
    565564#the-comment-list p.comment-author strong a,
    566 #media-upload a.del-link,
    567565#media-items a.delete,
    568566.plugins a.delete,
    569567.ui-tabs-nav a {
     
    695693table.widefat span.spam a,
    696694#dashboard_recent_comments .delete a,
    697695#dashboard_recent_comments .trash a,
    698 #dashboard_recent_comments .spam a {
     696#dashboard_recent_comments .spam a,
     697#media-upload a.del-link {
    699698        color: #bc0b0b;
    700699}
    701700
     
    873872table.widefat .trash a:hover,
    874873table.widefat .spam a:hover,
    875874#dashboard_recent_comments .delete a:hover,
    876 #dashboard_recent_comments .trash a:hover
    877 #dashboard_recent_comments .spam a:hover {
     875#dashboard_recent_comments .trash a:hover,
     876#dashboard_recent_comments .spam a:hover,
     877#media-upload a.del-link:hover {
    878878        color: #f00;
    879879}
    880880
  • wp-admin/includes/media.php

     
    11691169                $send = get_submit_button( __( 'Insert into Post' ), 'button', "send[$attachment_id]", false );
    11701170        if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) {
    11711171                if ( !EMPTY_TRASH_DAYS ) {
    1172                         $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Delete Permanently' ) . '</a>';
     1172                        $delete = "<a class='del-link' href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]'>" . __( 'Delete Permanently' ) . '</a>';
    11731173                } elseif ( !MEDIA_TRASH ) {
    1174                         $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
     1174                        $delete = "<a class='del-link' href='#' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
    11751175                         <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'><p>" . sprintf( __( 'You are about to delete <strong>%s</strong>.' ), $filename ) . "</p>
    11761176                         <a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
    11771177                         <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a>
    11781178                         </div>";
    11791179                } else {
    1180                         $delete = "<a href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>
     1180                        $delete = "<a class='del-link' href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-attachment_' . $attachment_id ) . "' id='del[$attachment_id]'>" . __( 'Move to Trash' ) . "</a>
    11811181                        <a href='" . wp_nonce_url( "post.php?action=untrash&amp;post=$attachment_id", 'untrash-attachment_' . $attachment_id ) . "' id='undo[$attachment_id]' class='undo hidden'>" . __( 'Undo' ) . "</a>";
    11821182                }
    11831183        } else {
     
    11971197        }
    11981198
    11991199        if ( ( $send || $thumbnail || $delete ) && !isset( $form_fields['buttons'] ) )
    1200                 $form_fields['buttons'] = array( 'tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>$send $thumbnail $delete</td></tr>\n" );
     1200                $form_fields['buttons'] = array( 'tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>$delete $thumbnail $send</td></tr>\n" );
    12011201
    12021202        $hidden_fields = array();
    12031203