edit.php 908 B

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