From ac2d244ec400fe87bc037b670f2667ab59d8fefd Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 3 Dec 2012 20:12:22 +0000 Subject: [PATCH] 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 --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 2029e962c..760c11323 100644 --- a/functions.php +++ b/functions.php @@ -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 ) : ?> -