WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48955, comment 1


Ignore:
Timestamp:
12/12/2019 11:05:47 PM (4 months ago)
Author:
aduth
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48955, comment 1

    initial v1  
    33https://developer.wordpress.org/reference/functions/wp_kses_post/
    44
    5 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:
     5Even prior to 5.3.1, the behavior for an improper type was not strictly-speaking an identity function, and could return a different result than what was given:
    66
    77{{{
    8 wp_kses_post( 5 );
    9 // string(1) "5"
     8wp> 5 === wp_kses_post( 5 );
     9=> bool(false)
     10wp> wp_kses_post( 5 );
     11=> string(1) "5"
    1012}}}