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:
Drew Jaynes 2013-10-30 16:04:09 +00:00
parent f34eb77cbc
commit 6e15f77e5a
3 changed files with 21 additions and 4 deletions

View File

@ -18,9 +18,24 @@ if ( empty( $_GET['action'] ) ) {
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'] );
wp_redirect( network_admin_url() );

View File

@ -49,7 +49,8 @@ get_current_screen()->set_help_sidebar(
$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
if ( isset( $_GET['action'] ) ) {
do_action( 'wpmuadminedit' , '' );
/** This action is documented in wp-admin/network/edit.php */
do_action( 'wpmuadminedit' );
if ( 'confirm' === $_GET['action'] ) {
check_admin_referer( 'confirm' );

View File

@ -87,7 +87,8 @@ function confirm_delete_users( $users ) {
}
if ( isset( $_GET['action'] ) ) {
do_action( 'wpmuadminedit' , '' );
/** This action is documented in wp-admin/network/edit.php */
do_action( 'wpmuadminedit' );
switch ( $_GET['action'] ) {
case 'deleteuser':