[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
Fri Dec 9 21:33:10 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:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------

Comment (by F J Kaiser):

 Replying to [comment:15 scribu]:
 > keeping in mind that the name of the filter is 'admin_body_class'.

 Maybe that's the problem. The other examples would like to

 {{{
 return " id='page-xy'";
 # or:
 return " style='margin: 10px;'";
 }}}

 Anyway, the ticket was written in a way that tried to sum up ''all''
 possibilities. Maybe some are too much. The following is what I hoped it
 would be the minimum result:

 {{{<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:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list