Make WordPress Core


Ignore:
Timestamp:
08/30/2012 05:23:22 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: use get_the_date() rather than the_date() in content templates to ensure a date is always output and a post permalink is visible to site visitors. Props obenland and ocean90, fixes #21721.

File:
1 edited

Legend:

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

    r21369 r21670  
    1616        <footer class="entry-meta">
    1717            <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    18             <h2><?php the_date(); ?></h2>
     18            <h2><?php echo get_the_date(); ?></h2>
    1919        </footer><!-- .entry-meta -->
    2020    </article><!-- #post -->
Note: See TracChangeset for help on using the changeset viewer.