Skip to content

Commit c643b73

Browse files
author
George Stephanis
committed
Add whitespace to admin body class
Props @lukecarbis Fixes Automattic#585, Automattic#586
1 parent 53f2ee5 commit c643b73

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

class.jetpack-network.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function do_automatically_add_new_site( $blog_id ) {
120120
* @since 2.9
121121
*/
122122
public function body_class( $classes ) {
123-
return 'network-admin';
123+
return trim( $classes ) . ' network-admin ';
124124
}
125125

126126
/**

class.jetpack.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,12 @@ function admin_body_class( $admin_body_class = '' ) {
18371837

18381838
$classes[] = self::is_active() ? 'jetpack-connected' : 'jetpack-disconnected';
18391839

1840-
return implode( ' ', array_unique( $classes ) );
1840+
$admin_body_class = implode( ' ', array_unique( $classes ) );
1841+
return " $admin_body_class ";
18411842
}
18421843

18431844
static function add_jetpack_pagestyles( $admin_body_class = '' ) {
1844-
return $admin_body_class . ' jetpack-pagestyles';
1845+
return $admin_body_class . ' jetpack-pagestyles ';
18451846
}
18461847

18471848
function prepare_connect_notice() {

0 commit comments

Comments
 (0)