From c0f33f6544e3f7f2ab314d6304ecf451215da630 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Sat, 25 Aug 2012 17:32:06 +0000 Subject: [PATCH] Twenty Twelve: consistently call sidebar areas with just the ID value, props obenland. See #21685. git-svn-id: http://core.svn.wordpress.org/trunk@21620 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- functions.php | 4 ++-- sidebar-home.php | 4 ++-- sidebar.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 5d9c82a45..21d678e6b 100644 --- a/functions.php +++ b/functions.php @@ -372,7 +372,7 @@ endif; function twentytwelve_body_class( $classes ) { $background_color = get_background_color(); - if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'full-width-page.php' ) ) + if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) ) $classes[] = 'full-width'; if ( is_page_template( 'homepage.php' ) && has_post_thumbnail() ) @@ -394,7 +394,7 @@ add_filter( 'body_class', 'twentytwelve_body_class' ); * @since Twenty Twelve 1.0 */ function twentytwelve_content_width() { - if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { + if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { global $content_width; $content_width = 960; } diff --git a/sidebar-home.php b/sidebar-home.php index 2712b9b2d..4629c9c2a 100644 --- a/sidebar-home.php +++ b/sidebar-home.php @@ -23,13 +23,13 @@ if ( ! is_active_sidebar( 2 ) && ! is_active_sidebar( 3 ) )
role="complementary">
- +
- +
\ No newline at end of file diff --git a/sidebar.php b/sidebar.php index 2bc4969ae..151fbc44f 100644 --- a/sidebar.php +++ b/sidebar.php @@ -10,8 +10,8 @@ */ ?> - + \ No newline at end of file