wp/wp-admin/admin-header.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    12 }
    12 }
    13 
    13 
    14 /**
    14 /**
    15  * In case admin-header.php is included in a function.
    15  * In case admin-header.php is included in a function.
    16  *
    16  *
    17  * @global string    $title
    17  * @global string    $title              The title of the current screen.
    18  * @global string    $hook_suffix
    18  * @global string    $hook_suffix
    19  * @global WP_Screen $current_screen     WordPress current screen object.
    19  * @global WP_Screen $current_screen     WordPress current screen object.
    20  * @global WP_Locale $wp_locale          WordPress date and time locale object.
    20  * @global WP_Locale $wp_locale          WordPress date and time locale object.
    21  * @global string    $pagenow            The filename of the current screen.
    21  * @global string    $pagenow            The filename of the current screen.
    22  * @global string    $update_title
    22  * @global string    $update_title
   107 	isRtl = <?php echo (int) is_rtl(); ?>;
   107 	isRtl = <?php echo (int) is_rtl(); ?>;
   108 </script>
   108 </script>
   109 <?php
   109 <?php
   110 
   110 
   111 /**
   111 /**
   112  * Enqueue scripts for all admin pages.
   112  * Fires when enqueuing scripts for all admin pages.
   113  *
   113  *
   114  * @since 2.8.0
   114  * @since 2.8.0
   115  *
   115  *
   116  * @param string $hook_suffix The current admin page.
   116  * @param string $hook_suffix The current admin page.
   117  */
   117  */
   240  * @param string $classes Space-separated list of CSS classes.
   240  * @param string $classes Space-separated list of CSS classes.
   241  */
   241  */
   242 $admin_body_classes = apply_filters( 'admin_body_class', '' );
   242 $admin_body_classes = apply_filters( 'admin_body_class', '' );
   243 $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
   243 $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
   244 ?>
   244 ?>
   245 <body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes; ?>">
   245 <body class="wp-admin wp-core-ui no-js <?php echo esc_attr( $admin_body_classes ); ?>">
   246 <script type="text/javascript">
   246 <script type="text/javascript">
   247 	document.body.className = document.body.className.replace('no-js','js');
   247 	document.body.className = document.body.className.replace('no-js','js');
   248 </script>
   248 </script>
   249 
   249 
   250 <?php
   250 <?php