diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index b73e97a932..4ecad8e808 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2132,7 +2132,7 @@ function path_join( $base, $path ) { return $path; } - return rtrim( $base, '/' ) . '/' . ltrim( $path, '/' ); + return rtrim( $base, '/' ) . '/' . $path; } /**