From 9f9facad5015bc75d4729d91da60dc55e09904ff Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 13 Apr 2018 14:02:10 +0000 Subject: [PATCH] Administration: Avoid an extra space in the admin body class. Props jainnidhi, rhetorical, birgire, mathieuhays. Fixes #43465. git-svn-id: https://develop.svn.wordpress.org/trunk@42974 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin-header.php | 3 ++- src/wp-admin/includes/template.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php index cbce31b59f..5322e2bb65 100644 --- a/src/wp-admin/admin-header.php +++ b/src/wp-admin/admin-header.php @@ -204,8 +204,9 @@ $admin_body_class .= ' no-customize-support no-svg'; * @param string $classes Space-separated list of CSS classes. */ $admin_body_classes = apply_filters( 'admin_body_class', '' ); +$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class ); ?> - + diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index e7b3a2d6ec..16cf63d5d3 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1788,6 +1788,7 @@ if ( is_rtl() ) { - class="wp-admin wp-core-ui no-js iframe "> + class="wp-admin wp-core-ui no-js iframe ">