mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-15 03:51:43 +01:00
Twenty Twelve: remove tag_description and category_description filters from archive template in favor of core filters. Fixes #21230.
git-svn-id: http://core.svn.wordpress.org/trunk@21268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
85f7094ce6
commit
bba762d76c
@ -30,13 +30,13 @@ get_header(); ?>
|
|||||||
// Show an optional tag description
|
// Show an optional tag description
|
||||||
$tag_description = tag_description();
|
$tag_description = tag_description();
|
||||||
if ( $tag_description )
|
if ( $tag_description )
|
||||||
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
|
echo '<div class="tag-archive-meta">' . $tag_description . '</div>';
|
||||||
} elseif ( is_category() ) {
|
} elseif ( is_category() ) {
|
||||||
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||||
// Show an optional category description
|
// Show an optional category description
|
||||||
$category_description = category_description();
|
$category_description = category_description();
|
||||||
if ( $category_description )
|
if ( $category_description )
|
||||||
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
|
echo '<div class="category-archive-meta">' . $category_description . '</div>';
|
||||||
} else {
|
} else {
|
||||||
_e( 'Blog Archives', 'twentytwelve' );
|
_e( 'Blog Archives', 'twentytwelve' );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user