Make WordPress Core


Ignore:
Timestamp:
05/26/2011 07:10:30 PM (13 years ago)
Author:
iandstewart
Message:

Twenty Eleven: Show tag descriptions on tag archive pages if they exist; Props zeo; Fixes #17438

File:
1 edited

Legend:

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

    r17959 r18058  
    1818                    ?></h1>
    1919
    20                     <?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
     20                    <?php
     21                        $category_description = category_description();
     22                        if ( ! empty( $category_description ) )
     23                            echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
     24                    ?>
    2125                </header>
    2226
Note: See TracChangeset for help on using the changeset viewer.