Make WordPress Core


Ignore:
Timestamp:
04/04/2009 01:40:21 PM (16 years ago)
Author:
azaozz
Message:

Fix 'admin_body_class' filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r10832 r10868  
    5858do_action("admin_head-$hook_suffix");
    5959do_action('admin_head');
     60
     61$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
    6062?>
    6163
     
    7981<?php } ?>
    8082</head>
    81 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix) ); ?>">
     83<body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
    8284
    8385<div id="wpwrap">
Note: See TracChangeset for help on using the changeset viewer.