[wp-trac] [WordPress Trac] #63437: [v6.8.1] Unsupported operand types: bool & string in wp_privacy_anonymize_ip on line 8234

WordPress Trac noreply at wordpress.org
Wed May 14 13:04:56 UTC 2025


#63437: [v6.8.1] Unsupported operand types: bool & string in
wp_privacy_anonymize_ip on line 8234
----------------------------+--------------------------------
 Reporter:  codesdnc        |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  6.8
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:  php-compatibility
----------------------------+--------------------------------

Comment (by nickbrazilian):

 @codesdnc I tested 200 valid ipv6 addresses and none of them got the same
 error. This appears to be happening only on invalid ipv6 addresses. You
 sure that you where using a valid one? If this is the case i will generate
 a lot more of ipv6 address to test this. BTW i read the
 wp_privacy_anonymize function source and i think this is really the case
 only for invalid ipv6 addresses (but anyways i am not a master at this
 currently, i could be wrong).

 Thank you

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


More information about the wp-trac mailing list