Ticket #36827: wp_guess_url_regex.patch
File wp_guess_url_regex.patch, 672 bytes (added by , 7 years ago) |
---|
-
wp-includes/functions.php
4087 4087 4088 4088 // The request is for the admin 4089 4089 if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false || strpos( $_SERVER['REQUEST_URI'], 'wp-login.php' ) !== false ) { 4090 $path = preg_replace( '#/(wp-admin/.*|wp-login .php)#i', '', $_SERVER['REQUEST_URI'] );4090 $path = preg_replace( '#/(wp-admin/.*|wp-login\.php)#i', '', $_SERVER['REQUEST_URI'] ); 4091 4091 4092 4092 // The request is for a file in ABSPATH 4093 4093 } elseif ( $script_filename_dir . '/' == $abspath_fix ) {