Fix 'admin_body_class' filter

git-svn-id: http://svn.automattic.com/wordpress/trunk@10868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-04-04 13:40:21 +00:00
parent b9c19736ff
commit a4c45667e1
1 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ do_action("admin_print_scripts-$hook_suffix");
do_action('admin_print_scripts'); do_action('admin_print_scripts');
do_action("admin_head-$hook_suffix"); do_action("admin_head-$hook_suffix");
do_action('admin_head'); do_action('admin_head');
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
?> ?>
<noscript> <noscript>
@ -78,7 +80,7 @@ do_action('admin_head');
<style type="text/css">.row-actions{visibility:visible;}</style> <style type="text/css">.row-actions{visibility:visible;}</style>
<?php } ?> <?php } ?>
</head> </head>
<body class="wp-admin <?php echo apply_filters( 'admin_body_class', preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix) ); ?>"> <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
<div id="wpwrap"> <div id="wpwrap">
<div id="wpcontent"> <div id="wpcontent">