WordPress.org

Make WordPress Core

Opened 16 months ago

Last modified 8 months ago

#22972 closed enhancement

Improve parameter name for wp_get_theme() — at Initial Version

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

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.

Change History (0)

Note: See TracTickets for help on using tickets.