[wp-trac] [WordPress Trac] #30819: Getting info on default theme(s)
WordPress Trac
noreply at wordpress.org
Tue Dec 23 12:04:15 UTC 2014
#30819: Getting info on default theme(s)
-------------------------+------------------------------
Reporter: donutz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by donutz):
That works fine, not sure why you're asking? My main goal is to be able to
access `$default_themes`, and use that data to check if a default (or
bundled) theme is active. I'd be happy with a `get_default_themes()`
method simply returning the value of `$default_themes`. I was thinking
plugins could use that info to dynamically provide appropriate styling for
whatever they print on the front end (add a body class selector, enqueue
an extra stylesheet, ...).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30819#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list