equal
deleted
inserted
replaced
10 define( 'WP_NETWORK_ADMIN', true ); |
10 define( 'WP_NETWORK_ADMIN', true ); |
11 |
11 |
12 /** Load WordPress Administration Bootstrap */ |
12 /** Load WordPress Administration Bootstrap */ |
13 require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); |
13 require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); |
14 |
14 |
15 if ( ! is_multisite() ) |
15 // Do not remove this check. It is required by individual network admin pages. |
|
16 if ( ! is_multisite() ) { |
16 wp_die( __( 'Multisite support is not enabled.' ) ); |
17 wp_die( __( 'Multisite support is not enabled.' ) ); |
|
18 } |
17 |
19 |
18 $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ); |
20 $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ); |
19 |
21 |
20 /** |
22 /** |
21 * Filter whether to redirect the request to the Network Admin. |
23 * Filters whether to redirect the request to the Network Admin. |
22 * |
24 * |
23 * @since 3.2.0 |
25 * @since 3.2.0 |
24 * |
26 * |
25 * @param bool $redirect_network_admin_request Whether the request should be redirected. |
27 * @param bool $redirect_network_admin_request Whether the request should be redirected. |
26 */ |
28 */ |