[wp-trac] [WordPress Trac] #38445: Rest Sanitize Boolean

WordPress Trac noreply at wordpress.org
Tue Aug 28 09:33:05 UTC 2018


#38445: Rest Sanitize Boolean
-------------------------+-------------------------
 Reporter:  wido         |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  REST API     |     Version:  4.7
 Severity:  normal       |  Resolution:  maybelater
 Keywords:  close        |     Focuses:
-------------------------+-------------------------

Comment (by birgire):

 We have
 [https://developer.wordpress.org/reference/functions/wp_validate_boolean/
 wp_validate_boolean()] since 4.0.0. I've not compared those two in detail,
 but I wonder if {{{rest_sanitize_boolean()}}} was needed?

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


More information about the wp-trac mailing list