Make WordPress Core


Ignore:
Timestamp:
08/30/2012 07:27:27 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.

File:
1 edited

Legend:

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

    r21670 r21674  
    1515
    1616        <footer class="entry-meta">
    17             <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 echo get_the_date(); ?></h2>
     17            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
     18                <h1><?php the_title(); ?></h1>
     19                <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php the_date(); ?></time></h2>
     20            </a>
    1921        </footer><!-- .entry-meta -->
    2022    </article><!-- #post -->
Note: See TracChangeset for help on using the changeset viewer.