Bundled themes: remove `the_title_attribute()` title attributes where it duplicates `the_title()` in anchor text. Props nacin, fixes #24203.
git-svn-id: http://core.svn.wordpress.org/trunk@24131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad159b8654
commit
7058b38d94
|
@ -10,7 +10,7 @@
|
|||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="aside">
|
||||
<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>
|
||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
||||
<div class="entry-content">
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark">
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h2>
|
||||
</a>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
<?php else : ?>
|
||||
<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>
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||
</h1>
|
||||
<?php endif; // is_single() ?>
|
||||
<?php if ( comments_open() ) : ?>
|
||||
|
|
Loading…
Reference in New Issue