Make WordPress Core


Ignore:
Timestamp:
06/10/2011 11:01:16 PM (13 years ago)
Author:
azaozz
Message:

Twenty Eleven code review and cleanup, props dd32, fixes #17748

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/content-status.php

    r18244 r18253  
    1616                <h2 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h2>
    1717            </hgroup>
    18 
    19             <?php if ( 'post' == $post->post_type ) : ?>
    20             <?php endif; ?>
    2118           
    2219            <?php if ( comments_open() ) : ?>
     
    3330        <?php else : ?>
    3431        <div class="entry-content">
    35             <div class="avatar"><?php echo get_avatar( $post->post_author, apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div>
     32            <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div>
    3633           
    3734            <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.