Changeset 47115
- Timestamp:
- 01/27/2020 02:28:12 PM (5 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/admin.php
r38657 r47115 18 18 } 19 19 20 $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path);20 $redirect_network_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) ); 21 21 22 22 /** … … 28 28 */ 29 29 $redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request ); 30 30 31 if ( $redirect_network_admin_request ) { 31 32 wp_redirect( network_admin_url() ); 32 33 exit; 33 34 } 35 34 36 unset( $redirect_network_admin_request ); -
trunk/src/wp-admin/user/admin.php
r42343 r47115 17 17 } 18 18 19 $redirect_user_admin_request = ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ); 19 $redirect_user_admin_request = ( 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) ); 20 20 21 /** 21 22 * Filters whether to redirect the request to the User Admin in Multisite. … … 26 27 */ 27 28 $redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request ); 29 28 30 if ( $redirect_user_admin_request ) { 29 31 wp_redirect( user_admin_url() ); 30 32 exit; 31 33 } 34 32 35 unset( $redirect_user_admin_request );
Note: See TracChangeset
for help on using the changeset viewer.