[wp-trac] [WordPress Trac] #31398: Add theme function wp_add_body_class() to abstract filtering `body_class`

WordPress Trac noreply at wordpress.org
Tue Feb 24 17:40:53 UTC 2015

#31398: Add theme function wp_add_body_class() to abstract filtering `body_class`
 Reporter:  mattheweppelsheimer  |       Owner:
     Type:  enhancement          |      Status:  closed
 Priority:  normal               |   Milestone:  Awaiting Review
Component:  Themes               |     Version:
 Severity:  normal               |  Resolution:  wontfix
 Keywords:  close                |     Focuses:  template
Changes (by mattheweppelsheimer):

 * status:  new => closed
 * resolution:   => wontfix


 Thanks for the feedback, @obenland. Makes sense.

 I do add single classes in template parts quite often, so this frequently
 happens three or four times per page load in my themes. But this is
 probably uncommon enough to be an edge case. So, I can create my own
 convenience function for use when needed in themes.

 Even if this turns out to be more common or desired by other theme
 developers, your point about API confusion is persuasive.

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

More information about the wp-trac mailing list