Skip to content

Commit 497730f

Browse files
committed
Customizer: Add admin-color shceme class to body element
1 parent eda8d9d commit 497730f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-admin/customize.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
$body_class .= ' rtl';
148148
}
149149
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
150+
$body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
150151

151152
if ( wp_use_widgets_block_editor() ) {
152153
$body_class .= ' wp-embed-responsive';

0 commit comments

Comments
 (0)