[wp-trac] [WordPress Trac] #56980: Check that the Normalizer class exists in remove_accents()

WordPress Trac noreply at wordpress.org
Thu Nov 3 13:59:44 UTC 2022


#56980: Check that the Normalizer class exists in remove_accents()
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.1.1
Component:  Formatting      |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------

Comment (by hellofromTonya):

 >It appears that the plugin polyfills the `normalizer_normalize()`
 function, but the `Normalizer` class has a different namespace there,
 `p\Normalizer`, so `Normalizer::FORM_C` produces a fatal error.

 Is there a case where Core should allow for the polyfill's version to be
 used?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56980#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list