From 6de2f44495c1357e1430a298b7ed10a93767255d Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 11 Sep 2013 22:06:21 +0000 Subject: [PATCH] `get_home_url()` assumes `$GLOBALS['pagenow']` is set. It isn't in `Tests_URL`... and now it is. See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25366 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/url.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/url.php b/tests/phpunit/tests/url.php index 4b4121e9c4..177a7a889e 100644 --- a/tests/phpunit/tests/url.php +++ b/tests/phpunit/tests/url.php @@ -6,6 +6,7 @@ class Tests_URL extends WP_UnitTestCase { function setUp() { parent::setUp(); $this->_old_server = $_SERVER; + $GLOBALS['pagenow'] = ''; } function tearDown() {