From 51b69b1f7f1de881077562b7cb7c4c96c5e956e5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 29 Apr 2015 07:18:35 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 929c4e218a..1f6e3b17c3 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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