2010-10-07 21:34:18 +02:00
|
|
|
<?php
|
2010-10-21 13:14:22 +02:00
|
|
|
/**
|
|
|
|
* WordPress User Administration Bootstrap
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
* @since 3.1.0
|
|
|
|
*/
|
2010-10-07 21:34:18 +02:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
define( 'WP_USER_ADMIN', true );
|
2010-10-07 21:34:18 +02:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
|
2010-10-07 21:34:18 +02:00
|
|
|
|
2011-01-20 04:04:20 +01:00
|
|
|
if ( ! is_multisite() ) {
|
|
|
|
wp_redirect( admin_url() );
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2011-04-20 22:19:50 +02:00
|
|
|
$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
|
2013-11-23 23:47:10 +01:00
|
|
|
/**
|
2016-05-22 20:01:30 +02:00
|
|
|
* Filters whether to redirect the request to the User Admin in Multisite.
|
2013-11-23 23:47:10 +01:00
|
|
|
*
|
|
|
|
* @since 3.2.0
|
|
|
|
*
|
|
|
|
* @param bool $redirect_user_admin_request Whether the request should be redirected.
|
|
|
|
*/
|
2011-04-20 22:19:50 +02:00
|
|
|
$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
|
|
|
|
if ( $redirect_user_admin_request ) {
|
2010-10-07 21:34:18 +02:00
|
|
|
wp_redirect( user_admin_url() );
|
2010-12-09 19:02:54 +01:00
|
|
|
exit;
|
|
|
|
}
|
2011-04-20 22:19:50 +02:00
|
|
|
unset( $redirect_user_admin_request );
|