Make WordPress Core


Ignore:
Timestamp:
06/10/2011 11:01:16 PM (15 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.php

    r18244 r18253  
    1313                        <?php if ( is_sticky() ) : ?>
    1414                                <hgroup>
    15                                         <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     15                                        <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) /* Y NO ARRAY! */ ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    1616                                        <h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2>
    1717                                </hgroup>
     
    2020                        <?php endif; ?>
    2121
    22                         <?php if ( 'post' == $post->post_type ) : ?>
     22                        <?php if ( 'post' == get_post_type() ) : ?>
    2323                        <div class="entry-meta">
    2424                                <?php twentyeleven_posted_on(); ?>
     
    4545
    4646                <footer class="entry-meta">
    47                         <?php $show_sep = false; ?>
    48                         <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?>
     47                        <?php $show_sep = false; //  perhaps a implode(' | ', $utilities) could be used instead of this $show_sep business? ?>
     48                        <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
    4949                        <?php
    5050                                /* translators: used between list items, there is a space after the comma */
     
    6969                        </span>
    7070                        <?php endif; // End if $tags_list ?>
    71                         <?php endif; // End if 'post' == $post->post_type ?>
     71                        <?php endif; // End if 'post' == get_post_type() ?>
    7272
    7373                        <?php if ( comments_open() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.