diff --git wp-admin/admin-header.php wp-admin/admin-header.php
index fae0b8e..2c14a92 100644
|
|
|
$admin_title = apply_filters( 'admin_title', $admin_title, $title ); |
| 33 | 33 | |
| 34 | 34 | wp_user_settings(); |
| 35 | 35 | |
| | 36 | _wp_admin_html_begin(); |
| 36 | 37 | ?> |
| 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'); ?>" /> |
| 41 | 38 | <title><?php echo $admin_title; ?></title> |
| 42 | 39 | <?php |
| 43 | 40 | |
diff --git wp-admin/includes/media.php wp-admin/includes/media.php
index 2b433e4..c338d56 100644
|
|
|
function media_handle_sideload($file_array, $post_id, $desc = null, $post_data = |
| 309 | 309 | * @param unknown_type $content_func |
| 310 | 310 | */ |
| 311 | 311 | function wp_iframe($content_func /* ... */) { |
| | 312 | _wp_admin_html_begin(); |
| 312 | 313 | ?> |
| 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'); ?>" /> |
| 317 | 314 | <title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — <?php _e('WordPress'); ?></title> |
| 318 | 315 | <?php |
| 319 | 316 | |
diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index eb2b6e2..b01322e 100644
|
|
|
function iframe_header( $title = '', $limit_styles = false ) { |
| 1352 | 1352 | global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale; |
| 1353 | 1353 | $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); |
| 1354 | 1354 | |
| 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 | ?> |
| 1359 | 1357 | <title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title> |
| 1360 | 1358 | <?php |
| 1361 | 1359 | wp_enqueue_style( 'colors' ); |
| … |
… |
function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $ |
| 1629 | 1627 | return $button; |
| 1630 | 1628 | } |
| 1631 | 1629 | |
| | 1630 | function _wp_admin_html_begin() { |
| | 1631 | $class = ''; |
| | 1632 | if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8.' ) ) |
| | 1633 | $class = ' class="ie8"'; |
| | 1634 | |
| | 1635 | if ( is_network_admin() || is_user_admin() ) |
| | 1636 | $content_type_string = 'text/html; charset=utf-8'; |
| | 1637 | else |
| | 1638 | $content_type_string = get_bloginfo('html_type') . '; charset=' . get_option( 'blog_charset' ); |
| | 1639 | |
| | 1640 | ?> |
| | 1641 | <!DOCTYPE html> |
| | 1642 | <html xmlns="http://www.w3.org/1999/xhtml" <?php |
| | 1643 | do_action('admin_xml_ns'); |
| | 1644 | echo $class . ' '; |
| | 1645 | language_attributes(); |
| | 1646 | ?>> |
| | 1647 | <head> |
| | 1648 | <meta http-equiv="Content-Type" content="<?php echo $content_type_string; ?>" /> |
| | 1649 | <?php |
| | 1650 | } |
| | 1651 | |
| 1632 | 1652 | /** |
| 1633 | 1653 | * Initializes the new feature pointers. |
| 1634 | 1654 | * |
diff --git wp-admin/network/sites.php wp-admin/network/sites.php
index 52778d8..5e07fb0 100644
|
|
|
if ( isset( $_GET['action'] ) ) { |
| 202 | 202 | } |
| 203 | 203 | if ( $current_site->blog_id == $id ) |
| 204 | 204 | wp_die( __( 'You are not allowed to change the current site.' ) ); |
| 205 | | ?> |
| 206 | | <!DOCTYPE html> |
| 207 | | <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>> |
| 208 | | <head> |
| 209 | | <title><?php _e( 'WordPress › Confirm your action' ); ?></title> |
| 210 | | |
| 211 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 212 | | <?php |
| 213 | | wp_admin_css( 'install', true ); |
| 214 | | wp_admin_css( 'ie', true ); |
| 215 | | ?> |
| | 205 | |
| | 206 | _wp_admin_html_begin(); |
| | 207 | ?> |
| | 208 | <title><?php _e( 'WordPress › Confirm your action' ); ?></title> |
| | 209 | <?php |
| | 210 | wp_admin_css( 'install', true ); |
| | 211 | wp_admin_css( 'ie', true ); |
| | 212 | ?> |
| 216 | 213 | </head> |
| 217 | 214 | <body> |
| 218 | 215 | <h1 id="logo"><img alt="WordPress" src="<?php echo esc_attr( admin_url( 'images/wordpress-logo.png' ) ); ?>" /></h1> |
diff --git wp-admin/press-this.php wp-admin/press-this.php
index 8329c24..e2cf3ca 100644
|
|
|
define('IFRAME_REQUEST' , true); |
| 11 | 11 | /** WordPress Administration Bootstrap */ |
| 12 | 12 | require_once('./admin.php'); |
| 13 | 13 | |
| 14 | | header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); |
| | 14 | header('Content-Type: ' . get_bloginfo('html_type') . '; charset=' . get_option('blog_charset')); |
| 15 | 15 | |
| 16 | 16 | if ( ! current_user_can('edit_posts') ) |
| 17 | 17 | wp_die( __( 'Cheatin’ uh?' ) ); |
| … |
… |
if ( !empty($_REQUEST['ajax']) ) { |
| 280 | 280 | die; |
| 281 | 281 | } |
| 282 | 282 | |
| | 283 | _wp_admin_html_begin(); |
| 283 | 284 | ?> |
| 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 | | |
| | 285 | <title><?php _e('Press This') ?></title> |
| 290 | 286 | <?php |
| 291 | 287 | wp_enqueue_style( 'colors' ); |
| 292 | 288 | wp_enqueue_script( 'post' ); |
diff --git wp-admin/upgrade.php wp-admin/upgrade.php
index 84e251b..148db29 100644
|
|
|
$mysql_version = $wpdb->db_version(); |
| 40 | 40 | $php_compat = version_compare( $php_version, $required_php_version, '>=' ); |
| 41 | 41 | $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); |
| 42 | 42 | |
| 43 | | @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
| | 43 | header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
| | 44 | _wp_admin_html_begin(); |
| 44 | 45 | ?> |
| 45 | | <!DOCTYPE html> |
| 46 | | <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
| 47 | | <head> |
| 48 | | <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" /> |
| 49 | 46 | <title><?php _e( 'WordPress › Update' ); ?></title> |
| 50 | 47 | <?php |
| 51 | 48 | wp_admin_css( 'install', true ); |
diff --git wp-includes/vars.php wp-includes/vars.php
index a2b4c31..fb526b5 100644
|
|
|
if ( $is_safari && stripos($_SERVER['HTTP_USER_AGENT'], 'mobile') !== false ) |
| 74 | 74 | |
| 75 | 75 | $is_IE = ( $is_macIE || $is_winIE ); |
| 76 | 76 | |
| 77 | | $wp_htmltag_class = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.') ? ' class="ie8"' : ''; // can't start with this |
| 78 | | |
| 79 | 77 | // Server detection |
| 80 | 78 | |
| 81 | 79 | /** |