CoreFiles by mySites.guru
edit.php41 lines, 925 bytes, from wordpress-5.2.8.zip
Raw History Compare with 5.2.7
md5
57b71456749af9c47b780d61d4cd9e1e
sha1
10ce2db2d229c6bedd6f8326b3bf3b277ed39b45
sha256
5c06fc0f0f4608024fcbaccdefd436aabbe644a429bfed40f291978a5dba3802
<?php
/**
 * Action handler for Multisite administration panels.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );

$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';

if ( empty( $action ) ) {
	wp_redirect( network_admin_url() );
	exit;
}

/**
 * Fires just before the action handler in several Network Admin screens.
 *
 * This hook fires on multiple screens in the Multisite Network Admin,
 * including Users, Network Settings, and Site Settings.
 *
 * @since 3.0.0
 */
do_action( 'wpmuadminedit' );

/**
 * Fires the requested handler action.
 *
 * The dynamic portion of the hook name, `$action`, refers to the name
 * of the requested action derived from the `GET` request.
 *
 * @since 3.1.0
 */
do_action( "network_admin_edit_{$action}" );

wp_redirect( network_admin_url() );
exit();

The same content is in 115 releases, WordPress 5.1-beta1 to 5.3.27. See them all, or every version of this file.