Make WordPress Core


Ignore:
Timestamp:
08/22/2013 05:02:34 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: Align post format handling with Twenty Thirteen. Props Frank Klein and obenland, see #24877.

File:
1 edited

Legend:

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

    r25021 r25088  
    1919                <?php endif; ?>
    2020
    21                 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     21                <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
    2222
    2323                <div class="entry-meta">
    24                         <?php if ( has_post_format( 'gallery' ) ) : ?>
    25                         <span class="post-format">
    26                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a>
    27                         </span>
    2824                        <?php
    29                                 endif;
    30 
    3125                                if ( 'post' == get_post_type() )
    3226                                        twentyfourteen_posted_on();
Note: See TracChangeset for help on using the changeset viewer.