From 3b76937ec86c06dc67d8397b096a606470b8f996 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 13 Apr 2018 14:03:20 +0000 Subject: [PATCH] Administration: Avoid an extra space in the admin body class. Props jainnidhi, rhetorical, birgire, mathieuhays. Fixes #43465. Built from https://develop.svn.wordpress.org/trunk@42974 git-svn-id: http://core.svn.wordpress.org/trunk@42803 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 3 ++- wp-admin/includes/template.php | 3 ++- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index cbce31b59f..5322e2bb65 100644 --- a/wp-admin/admin-header.php +++ b/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/wp-admin/includes/template.php b/wp-admin/includes/template.php index e7b3a2d6ec..16cf63d5d3 100644 --- a/wp-admin/includes/template.php +++ b/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 ">