CoreFiles by mySites.guru
admin.php35 lines, 968 bytes, from wordpress-3.8.zip
Raw History Compare with 3.7.41
md5
7c438b67f53cd6f805728ebcfcea096c
sha1
20e474ded29f9e9e6c7da68e93431d70dbad7f21
sha256
3dad6843db61a64de989b023749a4bb9bf9a224e7d14b6452d7a722e84797b07
<?php
/**
 * WordPress User Administration Bootstrap
 *
 * @package WordPress
 * @subpackage Administration
 * @since 3.1.0
 */

define('WP_USER_ADMIN', true);

require_once( dirname(dirname(__FILE__)) . '/admin.php');

if ( ! is_multisite() ) {
	wp_redirect( admin_url() );
	exit;
}

$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
/**
 * Filter whether a user should be redirected to the Global Dashboard in Multisite.
 *
 * Users not assigned to any sites in the network will be redirected to the Global
 * Dashboard after logging in.
 *
 * @since 3.2.0
 *
 * @param bool $redirect_user_admin_request Whether the request should be redirected.
 */
$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
if ( $redirect_user_admin_request ) {
	wp_redirect( user_admin_url() );
	exit;
}
unset( $redirect_user_admin_request );

The same content is in 49 releases, WordPress 3.8-RC1 to 3.9-RC1. See them all, or every version of this file.