Make WordPress Core


Ignore:
Timestamp:
04/29/2013 04:57:30 PM (11 years ago)
Author:
lancewillett
Message:

Bundled themes: remove the_title_attribute() title attributes where it duplicates the_title() in anchor text. Props nacin, fixes #24203.

File:
1 edited

Legend:

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

    r22318 r24131  
    1111    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1212        <div class="aside">
    13             <h1 class="entry-title"><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>
     13            <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    1414            <div class="entry-content">
    1515                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.