Add set_current_screen( 'front' )
to query/conditionals
tests setUp
routine so that cruff from previous tests doesn't cause every conditional test to fail in debug mode.
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25352 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d091e1d0b7
commit
9dc7afd478
@ -17,6 +17,8 @@ class Tests_Query_Conditionals extends WP_UnitTestCase {
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
set_current_screen( 'front' );
|
||||
|
||||
update_option( 'comments_per_page', 5 );
|
||||
update_option( 'posts_per_page', 5 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user