[wp-trac] [WordPress Trac] #21766: modify body_class function to allow non-class items

WordPress Trac noreply at wordpress.org
Fri Aug 1 18:43:48 UTC 2014

#21766: modify body_class function to allow non-class items
 Reporter:  norcross         |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |     Focuses:  template

Comment (by norcross):

 Replying to [comment:14 obenland]:
 > Double-checked with wonderboymusic during WCNYC contributor day:
 `body_class()` is just not the place for additional attributes, that would
 be theme territory.

 not happy, but it is what it is. considering how many years it took to get
 theme devs to use the `body_class()` function, I doubt that anything else
 will ever get implemented.

Ticket URL: <https://core.trac.wordpress.org/ticket/21766#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list