Edit File by line
/home/barbar84/www/wp-admin/user
File: admin.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WordPress User Administration Bootstrap
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
* @since 3.1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
define( 'WP_USER_ADMIN', true );
[9] Fix | Delete
[10] Fix | Delete
require_once dirname( __DIR__ ) . '/admin.php';
[11] Fix | Delete
[12] Fix | Delete
if ( ! is_multisite() ) {
[13] Fix | Delete
wp_redirect( admin_url() );
[14] Fix | Delete
exit;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$redirect_user_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) );
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Filters whether to redirect the request to the User Admin in Multisite.
[21] Fix | Delete
*
[22] Fix | Delete
* @since 3.2.0
[23] Fix | Delete
*
[24] Fix | Delete
* @param bool $redirect_user_admin_request Whether the request should be redirected.
[25] Fix | Delete
*/
[26] Fix | Delete
$redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );
[27] Fix | Delete
[28] Fix | Delete
if ( $redirect_user_admin_request ) {
[29] Fix | Delete
wp_redirect( user_admin_url() );
[30] Fix | Delete
exit;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
unset( $redirect_user_admin_request );
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function