[wp-trac] [WordPress Trac] #22972: Improve parameter name for wp_get_theme()

WordPress Trac noreply at wordpress.org
Mon Dec 17 12:35:22 UTC 2012


#22972: Improve parameter name for wp_get_theme()
-------------------------+------------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Description changed by johnbillion:

Old description:

> 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.

New description:

 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 directory, 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#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list