home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress2 / wp-admin / network / edit.php < prev    next >
Encoding:
PHP Script  |  2016-09-27  |  855 b   |  40 lines

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