[wp-trac] [WordPress Trac] #19460: Move filter for 'admin_body_class' to make it accessible for scripts and other stuff
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 7 01:14:18 UTC 2011
#19460: Move filter for 'admin_body_class' to make it accessible for scripts and
other stuff
-------------------------+-----------------------
Reporter: F J Kaiser | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Changes (by F J Kaiser):
* status: closed => reopened
* resolution: invalid =>
Comment:
Replying to [comment:5 nacin]:
> No, not even close. It's called unobtrusive JavaScript.
Even if so, the ticket is about more than that line. Adding a filter for
body classes and then not allowing to filter the actual classes is non
sense.
Suggested change:
{{{
<body class="<?php echo add_cssclass( apply_filters( 'admin_body_class',
"wp-admin no-js {$admin_body_class}" ); ?>">
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19460#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list