WordPress.org

Make WordPress Core

Ticket #22363: 22363.patch

File 22363.patch, 505 bytes (added by SergeyBiryukov, 5 years ago)
  • wp-includes/formatting.php

     
    831831        $filename = str_replace($special_chars, '', $filename);
    832832        $filename = preg_replace('/[\s-]+/', '-', $filename);
    833833        $filename = trim($filename, '.-_');
     834        $filename = remove_accents($filename);
    834835
    835836        // Split the filename into a base and extension[s]
    836837        $parts = explode('.', $filename);