From a4c45667e116281e2c94684147b20b6309486644 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 4 Apr 2009 13:40:21 +0000 Subject: [PATCH] Fix 'admin_body_class' filter git-svn-id: http://svn.automattic.com/wordpress/trunk@10868 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 4f5c1ad435..4c1c9f3be1 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -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); ?>