Make WordPress Core

Ticket #22363: 22363.4.diff

File 22363.4.diff, 650 bytes (added by audrasjb, 5 years ago)

Partial patch refreshed

  • src/wp-includes/formatting.php

    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 ) { 
    20142014         */
    20152015        $special_chars = apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw );
    20162016        $filename      = str_replace( $special_chars, '', $filename );
     2017        $filename      = remove_accents( $filename );
    20172018        $filename      = str_replace( array( '%20', '+' ), '-', $filename );
    20182019        $filename      = preg_replace( '/[\r\n\t -]+/', '-', $filename );
    20192020        $filename      = trim( $filename, '.-_' );