Ticket #25797: 25797.diff
File 25797.diff, 860 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/functions.php
3254 3254 $path = preg_replace( '#/' . preg_quote( $directory, '#' ) . '/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] ); 3255 3255 } elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) { 3256 3256 // Request is hitting a file above ABSPATH 3257 $subdirectory = s tr_replace( $script_filename_dir, '', $abspath_fix);3257 $subdirectory = substr( $abspath_fix, strpos( $abspath_fix, $script_filename_dir ) + strlen( $script_filename_dir ) ); 3258 3258 // Strip off any file/query params from the path, appending the sub directory to the install 3259 3259 $path = preg_replace( '#/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] ) . $subdirectory; 3260 3260 } else {