Changeset 31261 for trunk/src/wp-content/themes/twentytwelve/functions.php
- Timestamp:
- 01/21/2015 08:59:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwelve/functions.php
r30482 r31261 280 280 global $wp_query; 281 281 282 $html_id = esc_attr( $html_id );283 284 282 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"> 286 284 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 287 285 <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> 288 286 <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> 289 </nav><!-- #<?php echo $html_id; ?>.navigation -->287 </nav><!-- .navigation --> 290 288 <?php endif; 291 289 }
Note: See TracChangeset
for help on using the changeset viewer.