From e6bc7f67f9ff9573cb639059089df58fe43dc4e1 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: https://develop.svn.wordpress.org/trunk@22999 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 2029e962c1..760c113237 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/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 ) : ?> -