WordPress.org

Make WordPress Core

Changeset 18608


Ignore:
Timestamp:
08/26/11 19:00:07 (3 years ago)
Author:
ryan
Message:

Handle locales that use a comma as a separator when generating version classes. Props olivM. fixes #18460

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r18607 r18608  
    9797    $admin_body_class .= ' rtl'; 
    9898 
    99 $admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) ); 
     99$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) ); 
    100100$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) ); 
    101101$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); 
Note: See TracChangeset for help on using the changeset viewer.