Make WordPress Core

Changeset 18274


Ignore:
Timestamp:
06/11/2011 07:14:59 AM (15 years ago)
Author:
dd32
Message:

Remove the few post_type == post checks on Post Format templates, Post formats only apply to posts. See #17748

Location:
trunk/wp-content/themes/twentyeleven
Files:
4 edited

Legend:

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

    r18253 r18274  
    1717                                <h2 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h2>
    1818                        </hgroup>
    19 
    20                         <?php if ( 'post' == get_post_type() ) : ?>
    21                         <?php endif; ?>
    2219                       
    2320                        <?php if ( comments_open() ) : ?>
  • trunk/wp-content/themes/twentyeleven/content-image.php

    r18257 r18274  
    3030
    3131                <footer class="entry-meta">
    32                         <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
    3332                        <div class="entry-meta">
    3433                                <?php
     
    6665                                <?php endif; // End if comments_open() ?>
    6766                        </div><!-- .entry-meta -->
    68                         <?php endif; ?>
    6967
    7068                        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  • trunk/wp-content/themes/twentyeleven/content-link.php

    r18253 r18274  
    1717                                <h2 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h2>
    1818                        </hgroup>
    19 
    20                         <?php if ( 'post' == get_post_type() ) : ?>
    21                         <?php endif; ?>
    2219
    2320                        <?php if ( comments_open() ) : ?>
  • trunk/wp-content/themes/twentyeleven/content-quote.php

    r18253 r18274  
    1616                        </hgroup>
    1717
    18                         <?php if ( 'post' == get_post_type() ) : ?>
    1918                        <div class="entry-meta">
    2019                                <?php twentyeleven_posted_on(); ?>
    2120                        </div><!-- .entry-meta -->
    22                         <?php endif; ?>
    2321
    2422                        <?php if ( comments_open() ) : ?>
     
    4240                <footer class="entry-meta">
    4341                        <?php $show_sep = false; ?>
    44                         <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
    4542                        <?php
    4643                                /* translators: used between list items, there is a space after the comma */
     
    6562                        </span>
    6663                        <?php endif; // End if $tags_list ?>
    67                         <?php endif; // End if 'post' == $post->post_type ?>
    6864
    6965                        <?php if ( comments_open() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.