CoreFiles by mySites.guru
edit.php41 lines, 910 bytes, from wordpress-5.4.21.zip
Raw History Compare with 5.4.20
md5
ef2894975ebfb416e37e61d576c9bd30
sha1
0dfdb142778143bba228792d72777fba1049f9f5
sha256
7a4ea724fe7b3b19525139b11bec3cc664d675b09d562625b04f3991db40e931
<?php
/**
 * Action handler for Multisite administration panels.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/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 37 releases, WordPress 5.4-beta1 to 5.4.25. See them all, or every version of this file.