2010-07-30 16:34:54 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Action handler for Multisite administration panels.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Multisite
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
|
2010-11-10 09:27:15 -05:00
|
|
|
/** Load WordPress Administration Bootstrap */
|
2020-02-06 01:33:11 -05:00
|
|
|
require_once __DIR__ . '/admin.php';
|
2010-07-30 16:34:54 -04:00
|
|
|
|
2017-12-01 06:36:50 -05:00
|
|
|
$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
|
|
|
|
|
|
|
|
if ( empty( $action ) ) {
|
2011-08-18 02:17:47 -04:00
|
|
|
wp_redirect( network_admin_url() );
|
2010-12-09 13:02:54 -05:00
|
|
|
exit;
|
|
|
|
}
|
2010-08-02 14:10:43 -04:00
|
|
|
|
2013-10-30 12:04:09 -04:00
|
|
|
/**
|
|
|
|
* Fires just before the action handler in several Network Admin screens.
|
|
|
|
*
|
|
|
|
* This hook fires on multiple screens in the Multisite Network Admin,
|
|
|
|
* including Users, Network Settings, and Site Settings.
|
|
|
|
*
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
do_action( 'wpmuadminedit' );
|
2010-07-30 16:34:54 -04:00
|
|
|
|
2013-10-30 12:04:09 -04:00
|
|
|
/**
|
|
|
|
* Fires the requested handler action.
|
|
|
|
*
|
2017-12-01 06:36:50 -05:00
|
|
|
* The dynamic portion of the hook name, `$action`, refers to the name
|
|
|
|
* of the requested action derived from the `GET` request.
|
2013-10-30 12:04:09 -04:00
|
|
|
*
|
|
|
|
* @since 3.1.0
|
|
|
|
*/
|
2017-12-01 06:36:50 -05:00
|
|
|
do_action( "network_admin_edit_{$action}" );
|
2011-08-18 02:17:47 -04:00
|
|
|
|
|
|
|
wp_redirect( network_admin_url() );
|
2011-08-17 22:29:06 -04:00
|
|
|
exit();
|