[wp-trac] [WordPress Trac] #19736: Add default body_class classes for Theme Names
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 4 17:52:07 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 nacin):
The patch calls the expensive get_theme_data() function that reads
directly from the file.
In order to implement this, we should use the existing theme slug.
Example:
`'theme-' . sanitize_html_class( get_option( 'template' ) )`
While it's a cool idea, I don't think it's going to be necessary for most
use cases.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19736#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list