Pristine upstream, unpacked from the official wordpress.org tarball. https://wordpress.org/wordpress-7.1.1.tar.gz sha1 2a9d68474e8703aa3a66f80427b325e0941b6a1e (published by wordpress.org) sha256 3996fee13448ef12e07e9f0c77db2f655ffa1b7cde71c80a4965d3bf1fb956b3 This branch carries nothing but upstream releases, one commit each, and is never edited. It is the other side of the git-subtree merge that brings security releases into SiriusPress/wordpress/ — see SiriusPress/docs/upstream-merges.md.
41 lines
878 B
PHP
41 lines
878 B
PHP
<?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 = $_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;
|