WordPress.org

Make WordPress Core

Ticket #22690: 22690.patch

File 22690.patch, 1.0 KB (added by SergeyBiryukov, 2 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    244244        global $wp_query; 
    245245 
    246246        if ( $wp_query->max_num_pages > 1 ) : ?> 
    247                 <nav id="<?php echo $nav_id; ?>" class="navigation" role="navigation"> 
     247                <nav id="<?php echo esc_attr( $nav_id ); ?>" class="navigation" role="navigation"> 
    248248                        <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 
    249249                        <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div> 
    250250                        <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div> 
    251                 </nav><!-- #<?php echo $nav_id; ?> .navigation --> 
     251                </nav><!-- #<?php echo esc_attr( $nav_id ); ?> .navigation --> 
    252252        <?php endif; 
    253253} 
    254254endif;