mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Inline documentation for hooks in wp-admin/network/edit.php and wp-admin/network/users.php.
Props aralbald for the initial patch. Fixes #25728. Built from https://develop.svn.wordpress.org/trunk@25994 git-svn-id: http://core.svn.wordpress.org/trunk@25927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f34eb77cbc
commit
6e15f77e5a
@ -18,9 +18,24 @@ if ( empty( $_GET['action'] ) ) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
do_action( 'wpmuadminedit' , '' );
|
/**
|
||||||
|
* 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' );
|
||||||
|
|
||||||
// Let plugins use us as a post handler easily
|
/**
|
||||||
|
* Fires the requested handler action.
|
||||||
|
*
|
||||||
|
* The dynamic portion of the hook name, $_GET['action'], refers to the name
|
||||||
|
* of the requested action.
|
||||||
|
*
|
||||||
|
* @since 3.1.0
|
||||||
|
*/
|
||||||
do_action( 'network_admin_edit_' . $_GET['action'] );
|
do_action( 'network_admin_edit_' . $_GET['action'] );
|
||||||
|
|
||||||
wp_redirect( network_admin_url() );
|
wp_redirect( network_admin_url() );
|
||||||
|
@ -49,7 +49,8 @@ get_current_screen()->set_help_sidebar(
|
|||||||
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||||
|
|
||||||
if ( isset( $_GET['action'] ) ) {
|
if ( isset( $_GET['action'] ) ) {
|
||||||
do_action( 'wpmuadminedit' , '' );
|
/** This action is documented in wp-admin/network/edit.php */
|
||||||
|
do_action( 'wpmuadminedit' );
|
||||||
|
|
||||||
if ( 'confirm' === $_GET['action'] ) {
|
if ( 'confirm' === $_GET['action'] ) {
|
||||||
check_admin_referer( 'confirm' );
|
check_admin_referer( 'confirm' );
|
||||||
|
@ -87,7 +87,8 @@ function confirm_delete_users( $users ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_GET['action'] ) ) {
|
if ( isset( $_GET['action'] ) ) {
|
||||||
do_action( 'wpmuadminedit' , '' );
|
/** This action is documented in wp-admin/network/edit.php */
|
||||||
|
do_action( 'wpmuadminedit' );
|
||||||
|
|
||||||
switch ( $_GET['action'] ) {
|
switch ( $_GET['action'] ) {
|
||||||
case 'deleteuser':
|
case 'deleteuser':
|
||||||
|
Loading…
Reference in New Issue
Block a user