[wp-trac] [WordPress Trac] #22972: Improve parameter name for wp_get_theme()
WordPress Trac
noreply at wordpress.org
Mon Dec 17 12:33:16 UTC 2012
#22972: Improve parameter name for wp_get_theme()
-----------------------------+-------------------------
Reporter: johnbillion | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Themes
Version: 3.4 | Severity: normal
Keywords: |
-----------------------------+-------------------------
The name of the first parameter for `wp_get_theme()` is misleading. It's
called `$stylesheet` when in fact you're passing in the name of the
theme's template, not the stylesheet.
The function is a wrapper for the `WP_Theme` class which gets its
parameter names correct.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22972>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list