diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index c34f61e499..c76e8730fe 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2047,6 +2047,7 @@ function sanitize_file_name( $filename ) { $filename = str_replace( $special_chars, '', $filename ); $filename = str_replace( array( '%20', '+' ), '-', $filename ); + $filename = preg_replace( '/\.{2,}/', '.', $filename ); $filename = preg_replace( '/[\r\n\t -]+/', '-', $filename ); $filename = trim( $filename, '.-_' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c74631310b..dd72204902 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55208'; +$wp_version = '6.2-alpha-55209'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.