2010-10-07 15:34:18 -04:00
|
|
|
<?php
|
2010-10-21 07:14:22 -04:00
|
|
|
/**
|
|
|
|
* WordPress User Administration Bootstrap
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
* @since 3.1.0
|
|
|
|
*/
|
2010-10-07 15:34:18 -04:00
|
|
|
|
2012-01-05 15:50:54 -05:00
|
|
|
define('WP_USER_ADMIN', true);
|
2010-10-07 15:34:18 -04:00
|
|
|
|
|
|
|
require_once( dirname(dirname(__FILE__)) . '/admin.php');
|
|
|
|
|
2011-01-19 22:04:20 -05:00
|
|
|
if ( ! is_multisite() ) {
|
|
|
|
wp_redirect( admin_url() );
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2011-04-20 16:19:50 -04:00
|
|
|
$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
|
|
|
|
$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
|
|
|
|
if ( $redirect_user_admin_request ) {
|
2010-10-07 15:34:18 -04:00
|
|
|
wp_redirect( user_admin_url() );
|
2010-12-09 13:02:54 -05:00
|
|
|
exit;
|
|
|
|
}
|
2011-04-20 16:19:50 -04:00
|
|
|
unset( $redirect_user_admin_request );
|