[wp-trac] [WordPress Trac] #35951: remove_accents() doesn't escape Unicode NFD characters
WordPress Trac
noreply at wordpress.org
Thu Nov 3 10:31:24 UTC 2022
#35951: remove_accents() doesn't escape Unicode NFD characters
------------------------------------------+-----------------------
Reporter: onnimonni | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Charset | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch add-to-field-guide | Focuses:
------------------------------------------+-----------------------
Comment (by zodiac1978):
Replying to [comment:19 peterfabian1000]:
> I suppose it should be possible to fail more gracefully, or only use
`Normalizer` if `get_loaded_extensions` includes `intl`?
There is a function exist check there:
https://github.com/WordPress/WordPress/blob/823517e1deabef111a8a1b49bce466eada1162c9
/wp-includes/formatting.php#L1604
{{{#!php
<?php
if ( function_exists( 'normalizer_normalize' ) ) {
}}}
If this check is `true` but the function call produces a fatal error, we
maybe need to switch to check with `get_loaded_extensions` and `intl`
instead.
I would be interested in the environment (which PHP version and how does
the check can be true without a working normalize function).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35951#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list