Fix typo in a comment in `wp_guess_url()`.

props ixkaito.
fixes #32179.

git-svn-id: https://develop.svn.wordpress.org/trunk@32325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-04-29 07:18:35 +00:00
parent f31aeb97f1
commit 51b69b1f7f
1 changed files with 1 additions and 1 deletions

View File

@ -3755,7 +3755,7 @@ function wp_guess_url() {
if ( false !== strpos( $_SERVER['SCRIPT_FILENAME'], $abspath_fix ) ) { if ( false !== strpos( $_SERVER['SCRIPT_FILENAME'], $abspath_fix ) ) {
// Request is hitting a file inside ABSPATH // Request is hitting a file inside ABSPATH
$directory = str_replace( ABSPATH, '', $script_filename_dir ); $directory = str_replace( ABSPATH, '', $script_filename_dir );
// Strip off the sub directory, and any file/query paramss // Strip off the sub directory, and any file/query params
$path = preg_replace( '#/' . preg_quote( $directory, '#' ) . '/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] ); $path = preg_replace( '#/' . preg_quote( $directory, '#' ) . '/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] );
} elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) { } elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) {
// Request is hitting a file above ABSPATH // Request is hitting a file above ABSPATH