Make WordPress Core


Ignore:
Timestamp:
07/13/2012 12:36:27 AM (12 years ago)
Author:
lancewillett
Message:

Twenty Twelve: remove tag_description and category_description filters from archive template in favor of core filters. Fixes #21230.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/archive.php

    r21261 r21268  
    3131                    $tag_description = tag_description();
    3232                    if ( $tag_description )
    33                         echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
     33                        echo '<div class="tag-archive-meta">' . $tag_description . '</div>';
    3434                } elseif ( is_category() ) {
    3535                    printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
     
    3737                    $category_description = category_description();
    3838                    if ( $category_description )
    39                         echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
     39                        echo '<div class="category-archive-meta">' . $category_description . '</div>';
    4040                } else {
    4141                    _e( 'Blog Archives', 'twentytwelve' );
Note: See TracChangeset for help on using the changeset viewer.