WordPress.org

Make WordPress Core

Ticket #24661: 24661.0.rev24527.patch

File 24661.0.rev24527.patch, 773 bytes (added by NumidWasNotAvailable, 5 years ago)
  • wp-includes/formatting.php

    diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
    index c9ebd78..7b64ea1 100644
    a b function remove_accents($string) { 
    801801                }
    802802
    803803                $string = strtr($string, $chars);
     804
     805                // Removes combining marks.
     806                $combining_marks = array(
     807                        '/[\x{0300}-\x{036f}]/u', // Combining Diacritical Marks
     808                        '/[\x{1dc0}-\x{1dff}]/u', // Combining Diacritical Marks Supplement
     809                        '/[\x{20d0}-\x{20ff}]/u', // Combining Diacritical Marks for Symbols
     810                        '/[\x{fe20}-\x{fe2f}]/u'  // Combining Half Marks
     811                );
     812                $string = preg_replace( $combining_marks, '', $string );
    804813        } else {
    805814                // Assume ISO-8859-1 if not UTF-8
    806815                $chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)