From 81e923a291d6ece23f299b9d09368d52c8b895dd Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 12 Dec 2010 05:43:35 +0000 Subject: [PATCH] Include Javascript Global variables in iframe_header(); Add extra style/script actions which are missing from iframe_header() to bring it inline with admin-header.php. Fixes #15781 git-svn-id: https://develop.svn.wordpress.org/trunk@16881 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 2ad321de7b..ca70066e57 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1536,7 +1536,9 @@ function _admin_search_query() { */ function iframe_header( $title = '', $limit_styles = false ) { show_admin_bar( false ); - global $hook_suffix; + global $hook_suffix, $current_screen, $admin_body_class, $wp_locale; + $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); + ?> > @@ -1552,14 +1554,28 @@ wp_enqueue_style( 'colors' ); //', + 'uid': 'ID; ?>', + 'time':'' + }, + ajaxurl = '', + pagenow = 'id; ?>', + typenow = 'post_type) ) echo $current_screen->post_type; ?>', + adminpage = '', + thousandsSeparator = 'number_format['thousands_sep'] ); ?>', + decimalPoint = 'number_format['decimal_point'] ); ?>', + isRtl = ; //]]> class="no-js ">