2010-07-30 22:34:54 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Action handler for Multisite administration panels.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Multisite
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
|
2010-11-10 15:27:15 +01:00
|
|
|
/** Load WordPress Administration Bootstrap */
|
2013-09-25 02:18:11 +02:00
|
|
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
2010-07-30 22:34:54 +02:00
|
|
|
|
2010-12-09 19:02:54 +01:00
|
|
|
if ( empty( $_GET['action'] ) ) {
|
2011-08-18 08:17:47 +02:00
|
|
|
wp_redirect( network_admin_url() );
|
2010-12-09 19:02:54 +01:00
|
|
|
exit;
|
|
|
|
}
|
2010-08-02 20:10:43 +02:00
|
|
|
|
2013-10-30 17:04:09 +01: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 22:34:54 +02:00
|
|
|
|
2013-10-30 17:04:09 +01:00
|
|
|
/**
|
|
|
|
* Fires the requested handler action.
|
|
|
|
*
|
2014-11-30 12:21:22 +01:00
|
|
|
* The dynamic portion of the hook name, `$_GET['action']`, refers to the name
|
2013-10-30 17:04:09 +01:00
|
|
|
* of the requested action.
|
|
|
|
*
|
|
|
|
* @since 3.1.0
|
|
|
|
*/
|
2011-08-18 04:29:06 +02:00
|
|
|
do_action( 'network_admin_edit_' . $_GET['action'] );
|
2011-08-18 08:17:47 +02:00
|
|
|
|
|
|
|
wp_redirect( network_admin_url() );
|
2011-08-18 04:29:06 +02:00
|
|
|
exit();
|