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 */
11require_once __DIR__ . '/admin.php';
12
13$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
14
15if ( empty( $action ) ) {
16 wp_redirect( network_admin_url() );
17 exit;
18}
19
20/**
21 * Fires just before the action handler in several Network Admin screens.
22 *
23 * This hook fires on multiple screens in the Multisite Network Admin,
24 * including Users, Network Settings, and Site Settings.
25 *
26 * @since 3.0.0
27 */
28do_action( 'wpmuadminedit' );
29
30/**
31 * Fires the requested handler action.
32 *
33 * The dynamic portion of the hook name, `$action`, refers to the name
34 * of the requested action derived from the `GET` request.
35 *
36 * @since 3.1.0
37 */
38do_action( "network_admin_edit_{$action}" );
39
40wp_redirect( network_admin_url() );
41exit;
42