[wp-trac] [WordPress Trac] #38417: Post status enum is ignored in collection params, allowing invalid values

WordPress Trac noreply at wordpress.org
Tue Oct 25 17:12:20 UTC 2016


#38417: Post status enum is ignored in collection params, allowing invalid values
--------------------------+-----------------------
 Reporter:  joehoyle      |       Owner:  joehoyle
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  dev-feedback  |     Focuses:
--------------------------+-----------------------
Changes (by joehoyle):

 * owner:   => joehoyle
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38911"]:
 {{{
 #!CommitTicketReference repository="" revision="38911"
 REST API: Validate posts status enum

 Currently we are using a different validate callback, so the `enum` is not
 interpretted. We just have to fallback to the result of
 `rest_validate_request_arg` in our custom wrapper function.

 Fixes #38417.
 }}}

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


More information about the wp-trac mailing list