[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:57:01 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 GaryJ):
Replying to [comment:2 cais]:
> The Theme Name (aka theme slug) is already exposed in the path to the
Theme's stylesheet
Assuming that the theme doesn't dequeue the default style sheet reference
in favour of one that's created in the wp-contents directory (very few
would do that, admittedly, but it's still possible to do (as per a theme
I'm building at the moment). As such, forcing a theme name to be exposed
by a body class isn't being considerate.
If a theme *does* want to play nicely with certain plugins, then it can
add it's own class in 5 lines of code, or the plugins can handle providing
theme-specific styles if they are providing any styles at all, including
detecting the active theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19736#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list