Files
wordpress/wp-admin/network/edit.php
Weston Ruter df5581dd90 Code Modernization: Use null coalescing operator in additional isset() ternaries.
These had been missed previously due to additional parentheses around the `isset()` expressions.

Developed in https://github.com/WordPress/wordpress-develop/pull/10704

Follow-up to [61463], [61457], [61456], [61455], [61454], [61453], [61445], [61444], [61443], [61442], [61436], [61435], [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403].

Props soean.
See #58874, #63430.

Built from https://develop.svn.wordpress.org/trunk@61464


git-svn-id: http://core.svn.wordpress.org/trunk@60776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-10 05:29:48 +00:00

42 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;