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:
parent
f31aeb97f1
commit
51b69b1f7f
@ -3755,7 +3755,7 @@ function wp_guess_url() {
|
||||
if ( false !== strpos( $_SERVER['SCRIPT_FILENAME'], $abspath_fix ) ) {
|
||||
// Request is hitting a file inside ABSPATH
|
||||
$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'] );
|
||||
} elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) {
|
||||
// Request is hitting a file above ABSPATH
|
||||
|
Loading…
Reference in New Issue
Block a user