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

WordPress Trac noreply at wordpress.org
Mon Dec 17 14:25:51 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:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by SergeyBiryukov):

 I guess `stylesheet` is the common notation for theme's directory name
 throughout the theme-related functions.

 That's how it's described in `WP_Theme`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5/wp-includes/class-wp-
 theme.php#L86

 It's also used as a parameter in `get_theme_root()`,
 `get_theme_root_uri()`, `get_raw_theme_root()`, `switch_theme()`, and
 `wp_customize_url()`, so [attachment:22972.patch] would make that less
 consistent.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22972#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list