[wp-trac] [WordPress Trac] #42298: Use wp_get_theme() and wp_get_themes() instead of deprecated get_theme(), get_themes() and get_current_theme() in Tests_Theme class.
WordPress Trac
noreply at wordpress.org
Sat Oct 21 16:21:07 UTC 2017
#42298: Use wp_get_theme() and wp_get_themes() instead of deprecated get_theme(),
get_themes() and get_current_theme() in Tests_Theme class.
------------------------------+-----------------------------
Reporter: birgire | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
The {{{Tests_Theme}}} test class uses deprecated functions
{{{get_theme()}}}, {{{get_themes()}}} and {{{get_current_theme()}}} with
the annotations:
{{{
* @expectedDeprecated get_theme
* @expectedDeprecated get_themes
* @expectedDeprecated get_current_theme
}}}
I think we could update those with {{{wp_get_theme()}}} and
{{{wp_get_themes()}}} instead and get rid of these extra annotations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42298>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list