Changeset 7818 for trunk/tests/includes/testcase.php
- Timestamp:
- 02/07/2014 01:03:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r7664 r7818 93 93 // REQUEST_URI; mostly copied from /wp-includes/ms-settings.php 94 94 if ( is_multisite() ) { 95 $GLOBALS['current_blog'] = $GLOBALS['current_site'] = $GLOBALS['blog_id'] = null; 96 95 97 $domain = addslashes( $_SERVER['HTTP_HOST'] ); 96 98 if ( false !== strpos( $domain, ':' ) ) { … … 134 136 } 135 137 138 if ( $GLOBALS['current_site'] && ! $GLOBALS['current_blog'] ) { 139 $GLOBALS['current_blog'] = get_blog_details( array( 'domain' => $GLOBALS['current_site']->domain, 'path' => $GLOBALS['current_site']->path ), false ); 140 } 141 136 142 $GLOBALS['blog_id'] = $GLOBALS['current_blog']->blog_id; 137 143 }
Note: See TracChangeset
for help on using the changeset viewer.