WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2011 08:57:32 PM (10 years ago)
Author:
azaozz
Message:

Use IE conditionals when adding the ie8 class, introduce _wp_admin_html_begin(), props scribu, fixes #18966

File:
1 edited

Legend:

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

    r18977 r18982  
    13531353    $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
    13541354
    1355 ?><!DOCTYPE html>
    1356 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); echo $GLOBALS['wp_htmltag_class'] . ' '; language_attributes(); ?>>
    1357 <head>
    1358 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
     1355    _wp_admin_html_begin();
     1356?>
    13591357<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title ?> &#8212; <?php _e('WordPress'); ?></title>
    13601358<?php
     
    16301628}
    16311629
     1630function _wp_admin_html_begin() {
     1631?>
     1632<!DOCTYPE html>
     1633<!--[if IE 8]>
     1634<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1635<![endif]-->
     1636<!--[if !(IE 8) ]><!-->
     1637<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1638<!--<![endif]-->
     1639<head>
     1640<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
     1641<?php
     1642}
     1643
    16321644/**
    16331645 * Initializes the new feature pointers.
Note: See TracChangeset for help on using the changeset viewer.