[wp-trac] [WordPress Trac] #18853: Menus Admin Screen Doesn't Accept Body Classes
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 4 01:10:03 UTC 2011
#18853: Menus Admin Screen Doesn't Accept Body Classes
----------------------------+------------------------------
Reporter: JohnONolan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Comment (by SergeyBiryukov):
Same for Widgets screen in the accessibility mode:[[BR]]
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/widgets.php#L26
A workaround could be calling the function with a later priority and with
a whitespace in the string:
{{{
function my_admin_body_class( $classes ) {
if ( is_admin() ) {
$classes .= ' extra-class';
}
return $classes;
}
add_filter('admin_body_class', 'my_admin_body_class', 11);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18853#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list