mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Twenty Twelve: escape navigation ID output, props nacin. See #22690.
git-svn-id: http://core.svn.wordpress.org/trunk@22999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dcdf77365f
commit
219716e101
@ -240,15 +240,17 @@ if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
|
||||
*
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
function twentytwelve_content_nav( $nav_id ) {
|
||||
function twentytwelve_content_nav( $html_id ) {
|
||||
global $wp_query;
|
||||
|
||||
$html_id = esc_attr( $html_id );
|
||||
|
||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<nav id="<?php echo $nav_id; ?>" class="navigation" role="navigation">
|
||||
<nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
|
||||
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
|
||||
<div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
||||
</nav><!-- #<?php echo $nav_id; ?> .navigation -->
|
||||
</nav><!-- #<?php echo $html_id; ?> .navigation -->
|
||||
<?php endif;
|
||||
}
|
||||
endif;
|
||||
|
Loading…
Reference in New Issue
Block a user