Handle locales that use a comma as a separator when generating version classes. Props olivM. fixes #18460
git-svn-id: https://develop.svn.wordpress.org/trunk@18608 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77892dfba6
commit
20c9fd7c21
|
@ -96,7 +96,7 @@ if ( is_admin_bar_showing() )
|
||||||
if ( is_rtl() )
|
if ( is_rtl() )
|
||||||
$admin_body_class .= ' rtl';
|
$admin_body_class .= ' rtl';
|
||||||
|
|
||||||
$admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) );
|
$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
|
||||||
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
|
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
|
||||||
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
|
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue