Make WordPress Core

Ticket #43465: 43465.2.diff

File 43465.2.diff, 2.1 KB (added by rhetorical, 8 years ago)
  • src/wp-admin/admin-header.php

    diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php
    index cbce31b59f..7ec7dacb65 100644
    a b $admin_body_class .= ' no-customize-support no-svg'; 
    205205 */
    206206$admin_body_classes = apply_filters( 'admin_body_class', '' );
    207207?>
    208 <body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
     208<body class="wp-admin wp-core-ui no-js <?php echo ltrim( $admin_body_classes . ' ' . $admin_body_class ); ?>">
    209209<script type="text/javascript">
    210210        document.body.className = document.body.className.replace('no-js','js');
    211211</script>
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 66fb943b85..34d476ee58 100644
    a b if ( isset( $GLOBALS['body_id'] ) ) { 
    17981798        echo ' id="' . $GLOBALS['body_id'] . '"';
    17991799}
    18001800?>
    1801  class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
     1801 class="wp-admin wp-core-ui no-js iframe <?php echo ltrim( $admin_body_classes . ' ' . $admin_body_class ); ?>">
    18021802<script type="text/javascript">
    18031803(function(){
    18041804var c = document.body.className;
    function _wp_admin_html_begin() { 
    21652165?>
    21662166<!DOCTYPE html>
    21672167<!--[if IE 8]>
    2168 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" 
     2168<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>"
    21692169                                                                                                                                        <?php
    21702170                                                                                                                                        /**
    21712171                                                                                                                                         * Fires inside the HTML tag in the admin header.
    function _wp_admin_html_begin() { 
    21772177        <?php language_attributes(); ?>>
    21782178<![endif]-->
    21792179<!--[if !(IE 8) ]><!-->
    2180 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" 
     2180<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
    21812181                                                                                                                                <?php
    21822182                                                                                                                                /** This action is documented in wp-admin/includes/template.php */
    21832183                                                                                                                                do_action( 'admin_xml_ns' );