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 ) : ?> -