[wp-trac] [WordPress Trac] #61680: is_utf8_charset() undefined when called by code in compat.php
WordPress Trac
noreply at wordpress.org
Wed Jul 17 16:23:34 UTC 2024
#61680: is_utf8_charset() undefined when called by code in compat.php
--------------------------+-------------------------
Reporter: dmsnell | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 6.6.1
Component: General | Version: 6.6
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-------------------------
#61182 introduced `is_utf8_charset()` as a way of standardizing checks for
charset slugs referring to UTF-8. This is called by `_mb_strlen()` inside
of `compat.php`, but `is_utf8_charset()` is defined in `functions.php`,
which isn't loaded early on.
Code calling `mb_strlen()` early on before `functions.php` loads in hosts
without the multibyte extension therefore may crash. This was reported in
`wp-super-cache` [https://github.com/Automattic/jetpack/issues/38358
jetpack report].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61680>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list