Skip to content

Commit c86967a

Browse files
Update src/wp-admin/customize.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 497730f commit c86967a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-admin/customize.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
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' );
150+
$admin_color = get_user_option( 'admin_color' );
151+
$body_class .= ' admin-color-' . sanitize_html_class( is_string( $admin_color ) ? $admin_color : '', 'fresh' );
151152

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

0 commit comments

Comments
 (0)