WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/07/2012 10:05:01 PM (9 years ago)
Author:
nacin
Message:

Prevent a scrollbar in the admin caused by padding given to the toolbar. props SergeyBiryukov, ocean90. fixes #19196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r20891 r21025  
    16731673
    16741674function _wp_admin_html_begin() {
     1675    $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
    16751676?>
    16761677<!DOCTYPE html>
    16771678<!--[if IE 8]>
    1678 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1679<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    16791680<![endif]-->
    16801681<!--[if !(IE 8) ]><!-->
    1681 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1682<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    16821683<!--<![endif]-->
    16831684<head>
Note: See TracChangeset for help on using the changeset viewer.