[wp-trac] [WordPress Trac] #38739: REST API: slashing and validation: users

WordPress Trac noreply at wordpress.org
Mon Nov 14 04:53:09 UTC 2016


#38739: REST API: slashing and validation: users
---------------------------------------------+------------------------
 Reporter:  jnylen0                          |       Owner:  rmccue
     Type:  defect (bug)                     |      Status:  reviewing
 Priority:  normal                           |   Milestone:  4.7
Component:  REST API                         |     Version:  trunk
 Severity:  major                            |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+------------------------
Changes (by rmccue):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit
 * owner:   => rmccue
 * status:  new => reviewing


Comment:

 For the multi-error, this can instead use a single WP_Error instance and
 use `$error->add( $code, $message, $data )`. This will give the main
 error, and add a new `additional_errors` key to the error response with
 the others.

 Otherwise, looks good to me.

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


More information about the wp-trac mailing list