diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
index 4b596ea077..b8c27c8840 100644
a
|
b
|
function sanitize_file_name( $filename ) { |
2014 | 2014 | */ |
2015 | 2015 | $special_chars = apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw ); |
2016 | 2016 | $filename = str_replace( $special_chars, '', $filename ); |
| 2017 | $filename = remove_accents( $filename ); |
2017 | 2018 | $filename = str_replace( array( '%20', '+' ), '-', $filename ); |
2018 | 2019 | $filename = preg_replace( '/[\r\n\t -]+/', '-', $filename ); |
2019 | 2020 | $filename = trim( $filename, '.-_' ); |