Make WordPress Core


Ignore:
Timestamp:
04/13/2018 02:02:10 PM (4 years ago)
Author:
ocean90
Message:

Administration: Avoid an extra space in the admin body class.

Props jainnidhi, rhetorical, birgire, mathieuhays.
Fixes #43465.

File:
1 edited

Legend:

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

    r42827 r42974  
    205205 */
    206206$admin_body_classes = apply_filters( 'admin_body_class', '' );
    207 ?>
    208 <body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
     207$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
     208?>
     209<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes; ?>">
    209210<script type="text/javascript">
    210211    document.body.className = document.body.className.replace('no-js','js');
Note: See TracChangeset for help on using the changeset viewer.