diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 12f813fa9d..f5b58315af 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2101,11 +2101,11 @@ function path_is_absolute( $path ) { * This is definitive if true but fails if $path does not exist or contains * a symbolic link. */ - if ( realpath( $path ) == $path ) { + if ( realpath( $path ) === $path ) { return true; } - if ( strlen( $path ) == 0 || '.' === $path[0] ) { + if ( strlen( $path ) === 0 || '.' === $path[0] ) { return false; }