mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -6,6 +6,7 @@ class Tests_URL extends WP_UnitTestCase {
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
$this->_old_server = $_SERVER;
|
||||
$GLOBALS['pagenow'] = '';
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
|
||||
Reference in New Issue
Block a user