edit.php 855 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Action handler for Multisite administration panels.
  4. *
  5. * @package WordPress
  6. * @subpackage Multisite
  7. * @since 3.0.0
  8. */
  9. /** Load WordPress Administration Bootstrap */
  10. require_once( dirname( __FILE__ ) . '/admin.php' );
  11. if ( empty( $_GET['action'] ) ) {
  12. wp_redirect( network_admin_url() );
  13. exit;
  14. }
  15. /**
  16. * Fires just before the action handler in several Network Admin screens.
  17. *
  18. * This hook fires on multiple screens in the Multisite Network Admin,
  19. * including Users, Network Settings, and Site Settings.
  20. *
  21. * @since 3.0.0
  22. */
  23. do_action( 'wpmuadminedit' );
  24. /**
  25. * Fires the requested handler action.
  26. *
  27. * The dynamic portion of the hook name, `$_GET['action']`, refers to the name
  28. * of the requested action.
  29. *
  30. * @since 3.1.0
  31. */
  32. do_action( 'network_admin_edit_' . $_GET['action'] );
  33. wp_redirect( network_admin_url() );
  34. exit();