_wp_admin_html_begin
The WordPress Core wp admin html begin function.
Description
_wp_admin_html_begin();
Usage
if ( !function_exists( '_wp_admin_html_begin' ) ) { require_once ABSPATH . '/wp-admin/includes/template.php'; } // NOTICE! Understand what this does before running. $result = _wp_admin_html_begin();
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/template.php
- function _wp_admin_html_begin() {
- global $is_IE;
- $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
- if ( $is_IE )
- @header('X-UA-Compatible: IE=edge');
- ?>
- <!DOCTYPE html>
- <!--[if IE 8]>
- <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php
- /**
- * Fires inside the HTML tag in the admin header.
- *
- * @since 2.2.0
- */
- ?> <?php language_attributes(); ?>>
- <![endif]-->
- <!--[if !(IE 8) ]><!-->
- <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php
- /** This action is documented in wp-admin/includes/template.php */
- ?> <?php language_attributes(); ?>>
- <!--<![endif]-->
- <head>
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
- <?php