mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Do not show dummy default category output when calling the_category on a post_type that does not support the category taxonomy (like pages). Fix TwentyTen theme to not display wrapping text if there are no categories. fixes #10333
git-svn-id: https://develop.svn.wordpress.org/trunk@14660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -112,13 +112,12 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="entry-utility">
|
||||
<span class="cat-links">
|
||||
<span class="entry-utility-prep entry-utility-prep-cat-links">
|
||||
<?php
|
||||
printf( __('Posted in %s', 'twentyten' ), '</span> '.get_the_category_list( ', ' ) );
|
||||
?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php if ( count( get_the_category() ) ) : ?>
|
||||
<span class="cat-links">
|
||||
<span class="entry-utility-prep entry-utility-prep-cat-links"><?php printf( __('Posted in %s', 'twentyten' ), '</span> '.get_the_category_list( ', ' ) ); ?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$tags_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tags_list ):
|
||||
|
||||
Reference in New Issue
Block a user