Opened 5 months ago

Last modified 5 months ago

#22972 new enhancement

Improve parameter name for wp_get_theme() — at Version 1

Reported by: johnbillion Owned by:
Priority: normal Milestone: Awaiting Review
Component: Themes Version: 3.4
Severity: minor Keywords: has-patch
Cc:

Description (last modified by johnbillion)

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.

Change History (2)

  • Description modified (diff)
Note: See TracTickets for help on using tickets.