WordPress.org

Make WordPress Core

Ticket #17958: addicon.diff

File addicon.diff, 1.5 KB (added by christopherross, 3 years ago)

new diff for patch to add icon to admin

  • wp-admin/css/wp-admin.dev.css

     
    47074707.post-categories li { 
    47084708        display: inline; 
    47094709} 
     4710 
     4711.column-title-thumb { 
     4712    float:left; margin-right: 5px; 
     4713}  
  • wp-admin/includes/class-wp-posts-list-table.php

     
    530530                                else { 
    531531                                        $attributes = 'class="post-title page-title column-title"' . $style; 
    532532?> 
    533                         <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states( $post ); ?></strong> 
     533                        <td <?php echo $attributes ?>><?php if (has_post_thumbnail()) {echo "<div class='column-title-thumb'>";the_post_thumbnail(array(32,32));echo "</div>";}?><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states( $post ); ?></strong>  
    534534<?php 
    535535                                        if ( 'excerpt' == $mode ) { 
    536536                                                the_excerpt();