[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:33:11 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            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------
Changes (by birgire):

 * keywords:   => has-patch


Comment:

 [attachment:42298.diff] updates four test methods and removes the
 corresponding @expectedDeprecated annotations.

 I excluded here the method, corresponding to ticket #20897, that uses the
 deprecated {{{get_theme_data()}}}.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42298#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list