web/wp-admin/network/edit.php
changeset 194 32102edaa81b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
       
     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( './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 do_action( 'wpmuadminedit' , '' );
       
    22 
       
    23 // Let plugins use us as a post handler easily
       
    24 do_action( 'network_admin_edit_' . $_GET['action'] );
       
    25 
       
    26 wp_redirect( network_admin_url() );
       
    27 exit();