[wp-trac] [WordPress Trac] #19736: Add default body_class classes for Theme Names

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 4 20:03:23 UTC 2012


#19736: Add default body_class classes for Theme Names
-------------------------------------+------------------------------
 Reporter:  cais                     |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:  3.3.1
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by cais):

 Replying to [comment:7 SergeyBiryukov]:
 > Replying to [comment:6 cais]:
 > > `get_theme_data` may be expensive but I could not immediately think of
 another method to resolve the 'child-theme' name.
 >
 > `'child-theme-' . sanitize_html_class( get_option( 'stylesheet' ) )`

 Doh! I should have known it was that straight-forward.

 Note to self: find/create a list of all available values found via
 `get_option`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19736#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list