wp/wp-admin/network/edit.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
     8  */
     8  */
     9 
     9 
    10 /** Load WordPress Administration Bootstrap */
    10 /** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
    12 
    12 
    13 if ( empty( $_GET['action'] ) ) {
    13 $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
       
    14 
       
    15 if ( empty( $action ) ) {
    14 	wp_redirect( network_admin_url() );
    16 	wp_redirect( network_admin_url() );
    15 	exit;
    17 	exit;
    16 }
    18 }
    17 
    19 
    18 /**
    20 /**
    26 do_action( 'wpmuadminedit' );
    28 do_action( 'wpmuadminedit' );
    27 
    29 
    28 /**
    30 /**
    29  * Fires the requested handler action.
    31  * Fires the requested handler action.
    30  *
    32  *
    31  * The dynamic portion of the hook name, `$_GET['action']`, refers to the name
    33  * The dynamic portion of the hook name, `$action`, refers to the name
    32  * of the requested action.
    34  * of the requested action derived from the `GET` request.
    33  *
    35  *
    34  * @since 3.1.0
    36  * @since 3.1.0
    35  */
    37  */
    36 do_action( 'network_admin_edit_' . $_GET['action'] );
    38 do_action( "network_admin_edit_{$action}" );
    37 
    39 
    38 wp_redirect( network_admin_url() );
    40 wp_redirect( network_admin_url() );
    39 exit();
    41 exit();