Make WordPress Core


Ignore:
Timestamp:
10/11/2012 09:30:42 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Eleven: escape i18n attributes as late as possible, props mfields. See #21756.

File:
1 edited

Legend:

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

    r22193 r22199  
    1313            <?php if ( is_sticky() ) : ?>
    1414                <hgroup>
    15                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
     15                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    1616                    <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
    1717                </hgroup>
    1818            <?php else : ?>
    19             <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     19            <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    2020            <?php endif; ?>
    2121
Note: See TracChangeset for help on using the changeset viewer.