Skip to content

Commit c8d84aa

Browse files
committed
Inline documentation for hooks in wp-admin/user/admin.php.
Props leewillis77 for the initial patch. Props kpdesign. Fixes #25825. git-svn-id: https://develop.svn.wordpress.org/trunk@26344 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 96d3d38 commit c8d84aa

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/wp-admin/user/admin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
}
1818

1919
$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
20+
/**
21+
* Filter whether a user should be redirected to the Global Dashboard in Multisite.
22+
*
23+
* Users not assigned to any sites in the network will be redirected to the Global
24+
* Dashboard after logging in.
25+
*
26+
* @since 3.2.0
27+
*
28+
* @param bool $redirect_user_admin_request Whether the request should be redirected.
29+
*/
2030
$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
2131
if ( $redirect_user_admin_request ) {
2232
wp_redirect( user_admin_url() );

0 commit comments

Comments
 (0)