Changeset 16881
- Timestamp:
- 12/12/2010 05:43:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r16706 r16881 1537 1537 function iframe_header( $title = '', $limit_styles = false ) { 1538 1538 show_admin_bar( false ); 1539 global $hook_suffix; 1539 global $hook_suffix, $current_screen, $admin_body_class, $wp_locale; 1540 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 1541 1540 1542 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1541 1543 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> … … 1553 1555 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 1554 1556 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} 1557 var userSettings = { 1558 'url': '<?php echo SITECOOKIEPATH; ?>', 1559 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>', 1560 'time':'<?php echo time() ?>' 1561 }, 1562 ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', 1563 pagenow = '<?php echo $current_screen->id; ?>', 1564 typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>', 1565 adminpage = '<?php echo $admin_body_class; ?>', 1566 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>', 1567 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>', 1568 isRtl = <?php echo (int) is_rtl(); ?>; 1555 1569 //]]> 1556 1570 </script> 1557 1571 <?php 1572 do_action('admin_enqueue_scripts', $hook_suffix); 1573 do_action("admin_print_styles-$hook_suffix"); 1558 1574 do_action('admin_print_styles'); 1575 do_action("admin_print_scripts-$hook_suffix"); 1559 1576 do_action('admin_print_scripts'); 1577 do_action("admin_head-$hook_suffix"); 1560 1578 do_action('admin_head'); 1561 1562 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);1563 1579 ?> 1564 1580 </head>
Note: See TracChangeset
for help on using the changeset viewer.