[wp-trac] [WordPress Trac] #39042: REST API: Allow sanitization_callback to be set to null to bypass `rest_parse_request_arg()`

WordPress Trac noreply at wordpress.org
Sun Dec 4 17:43:51 UTC 2016


#39042: REST API: Allow sanitization_callback to be set to null to bypass
`rest_parse_request_arg()`
-------------------------------------------------+-------------------------
 Reporter:  rachelbaker                          |       Owner:
     Type:  defect (bug)                         |  kkoppenhaver
 Priority:  normal                               |      Status:  assigned
Component:  REST API                             |   Milestone:  4.7.1
 Severity:  normal                               |     Version:
 Keywords:  needs-patch needs-unit-tests good-   |  Resolution:
  first-bug                                      |     Focuses:
-------------------------------------------------+-------------------------

Comment (by rachelbaker):

 Thanks for the patch @kkoppenhaver.

 I wish there was a better way to structure this logic, so we didn't need
 to nest the `! array_key_exists()` conditional, but I didn't see an
 obvious way around it.

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


More information about the wp-trac mailing list