From e7e1169aa52ea86868f0b5f1d15a1d57c62d707e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 11 Jul 2014 19:04:13 +0000 Subject: [PATCH] Twenty Fourteen: fix header display on multisite signup and activate views. Fixes #28573, props slobodanmanic. Built from https://develop.svn.wordpress.org/trunk@29100 git-svn-id: http://core.svn.wordpress.org/trunk@28886 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfourteen/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index 19f0384048..d95d29dce0 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -385,7 +385,7 @@ endif; * * Adds body classes to denote: * 1. Single or multiple authors. - * 2. Presence of header image. + * 2. Presence of header image except in Multisite signup and activate pages. * 3. Index views. * 4. Full-width content layout. * 5. Presence of footer widgets. @@ -404,7 +404,7 @@ function twentyfourteen_body_classes( $classes ) { if ( get_header_image() ) { $classes[] = 'header-image'; - } else { + } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) { $classes[] = 'masthead-fixed'; }