[wp-trac] [WordPress Trac] #43224: Extract `$utf8_pcre` from `wp_check_invalid_utf8()` into a separate function
WordPress Trac
noreply at wordpress.org
Thu Apr 26 04:35:49 UTC 2018
#43224: Extract `$utf8_pcre` from `wp_check_invalid_utf8()` into a separate
function
-------------------------+------------------------------
Reporter: jaswrks | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by jnylen0):
The information in this ticket is correct, but this function already
exists in WP, almost exactly as written in the patch:
https://core.trac.wordpress.org/browser/tags/4.9.5/src/wp-
includes/compat.php#L16
Introduced here: https://core.trac.wordpress.org/changeset/32364#file2
It would be good to refactor `wp_check_invalid_utf8` to use the shared
function rather than doing its own thing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43224#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list