[wp-trac] [WordPress Trac] #63837: Update wp_check_invalid_utf8()

WordPress Trac noreply at wordpress.org
Tue Aug 19 13:33:09 UTC 2025


#63837: Update wp_check_invalid_utf8()
--------------------------------------+---------------------
 Reporter:  dmsnell                   |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.9
Component:  Formatting                |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by dmsnell):

 This is great testing @siliconforks — thank you! I’ve pushed one update
 which falls to the failsafe if running on a PHP version earlier than 8.1.6
 where the change was introduced.

 My first thought was to change the tests to only validate that
 substitution on the newer versions, but considered the value of having
 universal behavior to be greater.

 Ultimately this substitution isn’t super important, but it’s nice to have
 where possible.

 ----

 Where did you see the tests fail? I’m only seeing passing tests but am
 glad someone is looking out for version differences.

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


More information about the wp-trac mailing list