From d50dab879df86707967c695b574942e12a187f8d Mon Sep 17 00:00:00 2001 From: Luke Carbis Date: Thu, 22 May 2014 21:16:34 +1000 Subject: [PATCH 1/2] Add space around the body class --- includes/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/admin.php b/includes/admin.php index df9a0f48..8116a541 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -216,13 +216,13 @@ public static function admin_enqueue_scripts( $hook ) { * * @filter admin_body_class * - * @param array $classes + * @param string $classes * - * @return array $classes + * @return string $classes */ public static function admin_body_class( $classes ) { if ( isset( $_GET['page'] ) && false !== strpos( $_GET['page'], self::RECORDS_PAGE_SLUG ) ) { - $classes .= self::ADMIN_BODY_CLASS; + $classes .= ' ' . self::ADMIN_BODY_CLASS . ' '; } return $classes; From 17a022cb77ede2e7923ab43219b184e1645011f6 Mon Sep 17 00:00:00 2001 From: Frankie Jarrett Date: Thu, 22 May 2014 09:55:31 -0500 Subject: [PATCH 2/2] Make body class with spaces easier to read --- includes/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin.php b/includes/admin.php index 8116a541..c5af7ee4 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -222,7 +222,7 @@ public static function admin_enqueue_scripts( $hook ) { */ public static function admin_body_class( $classes ) { if ( isset( $_GET['page'] ) && false !== strpos( $_GET['page'], self::RECORDS_PAGE_SLUG ) ) { - $classes .= ' ' . self::ADMIN_BODY_CLASS . ' '; + $classes .= sprintf( ' %s ', self::ADMIN_BODY_CLASS ); } return $classes;