mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
Fix 'admin_body_class' filter
git-svn-id: https://develop.svn.wordpress.org/trunk@10868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f05792a405
commit
bf159ed6ba
@ -57,6 +57,8 @@ do_action("admin_print_scripts-$hook_suffix");
|
||||
do_action('admin_print_scripts');
|
||||
do_action("admin_head-$hook_suffix");
|
||||
do_action('admin_head');
|
||||
|
||||
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
|
||||
?>
|
||||
|
||||
<noscript>
|
||||
@ -78,7 +80,7 @@ do_action('admin_head');
|
||||
<style type="text/css">.row-actions{visibility:visible;}</style>
|
||||
<?php } ?>
|
||||
</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="wpcontent">
|
||||
|
Loading…
x
Reference in New Issue
Block a user