[wp-trac] [WordPress Trac] #34725: Require registered endpoints arguments to have a validate or sanitize callback

WordPress Trac noreply at wordpress.org
Wed Nov 18 20:53:34 UTC 2015


#34725: Require registered endpoints arguments to have a validate or sanitize
callback
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-----------------------------
Changes (by danielbachhuber):

 * milestone:  4.4 => Future Release


Comment:

 Bumping this out of 4.4

 Personally, I still think we should discard any arguments that haven’t
 been explicitly registered. But, it seems like the consensus is the
 opposite: let the arguments through, even if they haven't been registered,
 or don't have validation / sanitization callbacks.

 Eventually, we could trigger an error if the validation or sanitization
 callback is invalid. But, that doesn't need to happen for 4.4

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


More information about the wp-trac mailing list