CoreFiles by mySites.guru
admin.php31 lines, 921 bytes, from wordpress-3.9-beta2.zip
Raw History Compare with 3.9-beta1
md5
5070c5050355773f9f93681dcff259ab
sha1
8a32c600bedc3297df7dc24350c4bff69fd51f61
sha256
9f4e7f318ef79b4f831969d8597ed3296152d47e3f3246d69b6f005b137256be
<?php
/**
 * WordPress Network Administration Bootstrap
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.1.0
 */

define( 'WP_NETWORK_ADMIN', true );

/** Load WordPress Administration Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );

if ( ! is_multisite() )
	wp_die( __( 'Multisite support is not enabled.' ) );

$redirect_network_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
/**
 * Filter whether to redirect the request to the Network Admin.
 *
 * @since 3.2.0
 *
 * @param bool $redirect_user_admin_request Whether the request should be redirected.
 */
$redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request );
if ( $redirect_network_admin_request ) {
	wp_redirect( network_admin_url() );
	exit;
}
unset( $redirect_network_admin_request );

The same content is in 2 releases, WordPress 3.9-beta1 to 3.9-beta2. See them all, or every version of this file.