[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
Thu Nov 23 08:45:46 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: closed
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution: invalid
Keywords: has-patch | Focuses:
------------------------------+------------------------------
Changes (by Frank Klein):
* status: new => closed
* resolution: => invalid
Comment:
Thanks for the patch.
WordPress maintains existing test coverage for deprecated functions. These
tests are meant to prevent any regressions that could break code still
using deprecated APIs.
Removing the deprecated function usage in the tests would therefore reduce
test coverage. Which is something that we would want to avoid.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42298#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list