WordPress.org

Make WordPress Core

Ticket #13198: 13198-no-need-escape-invalid-param.patch

File 13198-no-need-escape-invalid-param.patch, 1020 bytes (added by zeo, 4 years ago)

Don't need to escape 2 times? Invalid parameter. see: esc_html($text)

  • wp-content/themes/twentyten/attachment.php

     
    1515 
    1616<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    1717 
    18                                 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title( $post->post_parent ), 1 ) ); ?>" rel="gallery">&larr; <?php echo get_the_title( $post->post_parent ); ?></a></p> 
     18                                <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ); ?>" rel="gallery">&larr; <?php echo get_the_title( $post->post_parent ); ?></a></p> 
    1919 
    2020                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    2121                                        <h2 class="entry-title"><?php the_title(); ?></h2>