[wp-trac] [WordPress Trac] #19736: Add default body_class classes for Theme Names
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 4 19:29:48 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 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' ) )`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19736#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list