WordPress.org

Make WordPress Core

Changeset 18982


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

Location:
trunk
Files:
5 edited

Legend:

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

    r18975 r18982  
    3434wp_user_settings();
    3535
     36_wp_admin_html_begin();
    3637?>
    37 <!DOCTYPE html>
    38 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); echo "$wp_htmltag_class "; language_attributes(); ?>>
    39 <head>
    40 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    4138<title><?php echo $admin_title; ?></title>
    4239<?php
  • trunk/wp-admin/includes/media.php

    r18977 r18982  
    310310 */
    311311function wp_iframe($content_func /* ... */) {
     312    _wp_admin_html_begin();
    312313?>
    313 <!DOCTYPE html>
    314 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); echo $GLOBALS['wp_htmltag_class'] . ' '; language_attributes(); ?>>
    315 <head>
    316 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    317314<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; <?php _e('WordPress'); ?></title>
    318315<?php
  • 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.
  • trunk/wp-admin/press-this.php

    r18975 r18982  
    281281}
    282282
    283 ?>
    284 <!DOCTYPE html>
    285 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); echo "$wp_htmltag_class "; language_attributes(); ?>>
    286 <head>
    287     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    288     <title><?php _e('Press This') ?></title>
    289 
    290 <?php
    291283    wp_enqueue_style( 'colors' );
    292284    wp_enqueue_script( 'post' );
     285    _wp_admin_html_begin();
    293286?>
     287<title><?php _e('Press This') ?></title>
    294288<script type="text/javascript">
    295289//<![CDATA[
  • trunk/wp-includes/vars.php

    r18975 r18982  
    7575$is_IE = ( $is_macIE || $is_winIE );
    7676
    77 $wp_htmltag_class = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.') ? ' class="ie8"' : ''; // can't start with this
    78 
    7977// Server detection
    8078
Note: See TracChangeset for help on using the changeset viewer.