Make WordPress Core

Ticket #17958: 17958.6.diff

File 17958.6.diff, 2.8 KB (added by mikeschroder, 12 years ago)

Refreshed with nacin's cleanup

  • wp-admin/includes/class-wp-posts-list-table.php

     
    523523                                        }
    524524
    525525                                        $pad = str_repeat( '— ', $level );
    526 ?>
    527                         <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 $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?></strong>
    528 <?php
     526                                } else {
     527                                        $pad = '';
    529528                                }
    530                                 else {
    531                                         $attributes = 'class="post-title page-title column-title"' . $style;
    532529?>
    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>
    534 <?php
    535                                         if ( 'excerpt' == $mode ) {
     530                        <td <?php echo $attributes ?>>
     531                                <?php if ( has_post_thumbnail() ) {
     532                                        echo "<div class='column-title-thumb'>";
     533                                        the_post_thumbnail( array(32,32) );
     534                                        echo "</div>";
     535                                } ?>
     536                                <strong><?php
     537                                if ( $can_edit_post && $post->post_status != 'trash' ) : ?>
     538                                        <a class="row-title" href="<?php echo $edit_link; ?>"
     539                                                title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ); ?>">
     540                                        <?php echo $pad . $title; ?></a>
     541                                <?php
     542                                        else :
     543                                                echo $pad . $title;
     544                                        endif;
     545                                        _post_states( $post );
     546                                        if ( $this->hierarchical_display ) {
     547                                                if ( isset( $parent_name ) )
     548                                                        echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name );
     549                                        } elseif ( 'excerpt' == $mode ) {
    536550                                                the_excerpt();
    537551                                        }
    538                                 }
    539 
     552                                ?></strong>
     553<?php
    540554                                $actions = array();
    541555                                if ( $can_edit_post && 'trash' != $post->post_status ) {
    542556                                        $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID, true ) . '" title="' . esc_attr( __( 'Edit this item' ) ) . '">' . __( 'Edit' ) . '</a>';
  • wp-admin/css/wp-admin.dev.css

     
    48084808        font-weight: bold;
    48094809}
    48104810
     4811.column-title-thumb {
     4812        float:left;
     4813        margin-right: 5px;
     4814}
     4815
    48114816.column-author img, .column-username img {
    48124817        float: left;
    48134818        margin-right: 10px;