]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/network/edit.php
WordPress 4.2
[autoinstalls/wordpress.git] / wp-admin / network / edit.php
1 <?php
2 /**
3  * Action handler for Multisite administration panels.
4  *
5  * @package WordPress
6  * @subpackage Multisite
7  * @since 3.0.0
8  */
9
10 /** Load WordPress Administration Bootstrap */
11 require_once( dirname( __FILE__ ) . '/admin.php' );
12
13 if ( ! is_multisite() )
14         wp_die( __( 'Multisite support is not enabled.' ) );
15
16 if ( empty( $_GET['action'] ) ) {
17         wp_redirect( network_admin_url() );
18         exit;
19 }
20
21 /**
22  * Fires just before the action handler in several Network Admin screens.
23  *
24  * This hook fires on multiple screens in the Multisite Network Admin,
25  * including Users, Network Settings, and Site Settings.
26  *
27  * @since 3.0.0
28  */
29 do_action( 'wpmuadminedit' );
30
31 /**
32  * Fires the requested handler action.
33  *
34  * The dynamic portion of the hook name, `$_GET['action']`, refers to the name
35  * of the requested action.
36  *
37  * @since 3.1.0
38  */
39 do_action( 'network_admin_edit_' . $_GET['action'] );
40
41 wp_redirect( network_admin_url() );
42 exit();