WordPress.org

Make WordPress Core

Ticket #16905: 16905.patch

File 16905.patch, 665 bytes (added by hakre, 3 years ago)

make remove_accent() filterable

  • wp-includes/formatting.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    544544        if ( !preg_match('/[\x80-\xff]/', $string) ) 
    545545                return $string; 
    546546 
     547        $string_original = $string; 
    547548        if (seems_utf8($string)) { 
    548549                $chars = array( 
    549550                // Decompositions for Latin-1 Supplement 
     
    673674                $string = str_replace($double_chars['in'], $double_chars['out'], $string); 
    674675        } 
    675676 
    676         return $string; 
     677        return apply_filter('remove_accents', $string, $string_original); 
    677678} 
    678679 
    679680/**