Make WordPress Core


Ignore:
Timestamp:
10/11/2012 09:30:42 PM (14 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-gallery.php

    r21368 r22199  
    1414    <header class="entry-header">
    1515        <hgroup>
    16             <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>
     16            <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>
    1717            <h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
    1818        </hgroup>
     
    4646
    4747                <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
    48                         'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
     48                        'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    4949                        number_format_i18n( $total_images )
    5050                    ); ?></em></p>
Note: See TracChangeset for help on using the changeset viewer.