[wp-trac] [WordPress Trac] #56980: Check that the Normalizer class exists in remove_accents()
WordPress Trac
noreply at wordpress.org
Thu Nov 3 14:36:38 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 SergeyBiryukov):
On a closer look, it appears that `Normalizer::FORM_C` is the default
value both for [https://www.php.net/manual/en/normalizer.isnormalized.php
normalizer_is_normalized()] and
[https://www.php.net/manual/en/normalizer.normalize.php
normalizer_normalize()], so perhaps we can just remove it. That way the
polyfilled function should work.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56980#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list