WordPress.org

Make WordPress Core

Ticket #25825: 25825.2.diff

File 25825.2.diff, 865 bytes (added by kpdesign, 7 years ago)

Second pass

  • src/wp-admin/user/admin.php

     
    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 User Admin in Multisite.
     22 *
     23 * Users not assigned to any sites in the network will be redirected to the User
     24 * Admin 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 );
    2131if ( $redirect_user_admin_request ) {
    2232        wp_redirect( user_admin_url() );