WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2015 08:59:15 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Twelve: fix escaping and minor code style issues. See #29127.

File:
1 edited

Legend:

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

    r30482 r31261  
    280280    global $wp_query;
    281281
    282     $html_id = esc_attr( $html_id );
    283 
    284282    if ( $wp_query->max_num_pages > 1 ) : ?>
    285         <nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
     283        <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
    286284            <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    287285            <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
    288286            <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>
    289         </nav><!-- #<?php echo $html_id; ?> .navigation -->
     287        </nav><!-- .navigation -->
    290288    <?php endif;
    291289}
Note: See TracChangeset for help on using the changeset viewer.