WordPress.org

Make WordPress Core

Changeset 18058


Ignore:
Timestamp:
05/26/11 19:10:30 (3 years ago)
Author:
iandstewart
Message:

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

Location:
trunk/wp-content/themes/twentyeleven
Files:
2 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 
  • trunk/wp-content/themes/twentyeleven/tag.php

    r17959 r18058  
    1919                        printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 
    2020                    ?></h1> 
     21 
     22                    <?php 
     23                        $tag_description = tag_description(); 
     24                        if ( ! empty( $tag_description ) ) 
     25                            echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 
     26                    ?> 
    2127                </header> 
    2228 
Note: See TracChangeset for help on using the changeset viewer.