`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
This commit is contained in:
parent
38474ef5d1
commit
6de2f44495
|
@ -6,6 +6,7 @@ class Tests_URL extends WP_UnitTestCase {
|
|||
function setUp() {
|
||||
parent::setUp();
|
||||
$this->_old_server = $_SERVER;
|
||||
$GLOBALS['pagenow'] = '';
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
|
|
Loading…
Reference in New Issue