[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
Tue Dec 6 23:15:08 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:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Currently this is what the body for the admin interface looks like:

 {{{
 <body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class',
 '' ) . " $admin_body_class"; ?>">
 }}}

 This is makes it impossible to do the same as you can do to public
 template pages:

 {{{return " onload='init();'";}}}.

 Moving the filter ''behind'' the var, would make it an easy one-liner.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19460>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list