Ticket #20922: 20922.diff
File 20922.diff, 1.5 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyeleven/content.php
45 45 46 46 <footer class="entry-meta"> 47 47 <?php $show_sep = false; ?> 48 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search?>48 <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?> 49 49 <?php 50 50 /* translators: used between list items, there is a space after the comma */ 51 51 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); … … 56 56 $show_sep = true; ?> 57 57 </span> 58 58 <?php endif; // End if categories ?> 59 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> 60 <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?> 59 61 <?php 60 62 /* translators: used between list items, there is a space after the comma */ 61 63 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); … … 68 70 $show_sep = true; ?> 69 71 </span> 70 72 <?php endif; // End if $tags_list ?> 71 <?php endif; // End if 'post' == get_post_type() ?>72 73 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> 74 73 75 <?php if ( comments_open() ) : ?> 74 76 <?php if ( $show_sep ) : ?> 75 77 <span class="sep"> | </span>