[wp-trac] [WordPress Trac] #43224: Extract `$utf8_pcre` from `wp_check_invalid_utf8()` into a separate function

WordPress Trac noreply at wordpress.org
Sun Feb 4 18:48:26 UTC 2018


#43224: Extract `$utf8_pcre` from `wp_check_invalid_utf8()` into a separate
function
-------------------------+------------------------------
 Reporter:  jaswrks      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Formatting   |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by jaswrks):

 '''Update:''' The Gutenberg PEG parser is actually generated by a
 JavaScript library, so maybe it's not the best example of a use case for
 this. However, I still think the patch is worth considering; i.e., a good
 idea for this to be extracted so it can be used by other functions.

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


More information about the wp-trac mailing list