Make WordPress Core


Ignore:
Timestamp:
10/27/2020 05:05:51 PM (5 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Import the latest changes.

For a full list of changes since [49320], see https://github.com/WordPress/twentytwentyone/compare/461dcf9cd...5759e96.

Props poena, melchoyce, aristath, justinahinon, ryelle.
See #51526.

File:
1 edited

Legend:

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

    r49216 r49330  
    1111
    1212get_header();
     13
     14$description = get_the_archive_description();
    1315?>
    1416
     
    1719    <header class="page-header alignwide">
    1820        <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
     21        <?php if ( $description ) : ?>
     22            <div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div>
     23        <?php endif; ?>
    1924    </header><!-- .page-header -->
    2025
Note: See TracChangeset for help on using the changeset viewer.