WordPress.org

Make WordPress Core

Ticket #25825: 25825.diff

File 25825.diff, 1.1 KB (added by leewillis77, 8 years ago)

Docs patch attached

  • wp-admin/user/admin.php

     
    22/**
    33 * WordPress User Administration Bootstrap
    44 *
     5 * @since 3.1.0
     6 *
    57 * @package WordPress
    68 * @subpackage Administration
     9 */
     10
     11/**
     12 * The current request is for a user admin screen /wp-admin/user/
     13 *
    714 * @since 3.1.0
     15 * @var bool
    816 */
    9 
    1017define('WP_USER_ADMIN', true);
    1118
     19
     20/*
     21 * Include WordPress admin bootstrap.
     22 */
    1223require_once( dirname(dirname(__FILE__)) . '/admin.php');
    1324
    1425if ( ! is_multisite() ) {
     
    1728}
    1829
    1930$redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) );
     31/**
     32 * Filter whether user and network admin redirects should happen.
     33 *
     34 * @param bool $redirect_user_admin_request True if the request should be redirected
     35 */
    2036$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
    2137if ( $redirect_user_admin_request ) {
    2238        wp_redirect( user_admin_url() );