[wp-trac] [WordPress Trac] #48955: WP 5.3.1 changes cause potential backwards compatibility breakage with kses

WordPress Trac noreply at wordpress.org
Thu Dec 12 23:00:48 UTC 2019


#48955: WP 5.3.1 changes cause potential backwards compatibility breakage with kses
--------------------------+------------------------------
 Reporter:  iCaleb        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Security      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by aduth):

 Since it's documented to accept a string, I don't know that backwards-
 compatibility would cover the incidental behavior of an invalid usage?

 https://developer.wordpress.org/reference/functions/wp_kses_post/

 Even prior to 5.3.1, the behavior was not strictly-speaking an identity
 function, and could return a different result than what was given:

 {{{
 wp_kses_post( 5 );
 // string(1) "5"
 }}}

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


More information about the wp-trac mailing list