Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#22972 closed enhancement

Improve parameter name for wp_get_theme() — at Version 1

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.4
Component: Themes Keywords: has-patch
Focuses: 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)

#1 @johnbillion
5 years ago

  • Description modified (diff)

5 years ago

Note: See TracTickets for help on using tickets.