Make WordPress Core

Changeset 23000


Ignore:
Timestamp:
12/03/2012 08:13:14 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Eleven: escape navigation ID output, closes #22690.

File:
1 edited

Legend:

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

    r22408 r23000  
    446446 * Display navigation to next/previous pages when applicable
    447447 */
    448 function twentyeleven_content_nav( $nav_id ) {
     448function twentyeleven_content_nav( $html_id ) {
    449449    global $wp_query;
    450450
    451451    if ( $wp_query->max_num_pages > 1 ) : ?>
    452         <nav id="<?php echo $nav_id; ?>">
     452        <nav id="<?php echo esc_attr( $html_id ); ?>">
    453453            <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
    454454            <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven' ) ); ?></div>
Note: See TracChangeset for help on using the changeset viewer.