Make WordPress Core

Ticket #56980: 56980.2.diff

File 56980.2.diff, 703 bytes (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/formatting.php

     
    16021602                // Unicode sequence normalization from NFD (Normalization Form Decomposed)
    16031603                // to NFC (Normalization Form [Pre]Composed), the encoding used in this function.
    16041604                if ( function_exists( 'normalizer_normalize' ) ) {
    1605                         if ( ! normalizer_is_normalized( $string, Normalizer::FORM_C ) ) {
    1606                                 $string = normalizer_normalize( $string, Normalizer::FORM_C );
     1605                        if ( ! normalizer_is_normalized( $string ) ) {
     1606                                $string = normalizer_normalize( $string );
    16071607                        }
    16081608                }
    16091609