[wp-trac] [WordPress Trac] #35028: WP_Error objects returned by REST API validation callbacks aren't formatted correctly

WordPress Trac noreply at wordpress.org
Sat Dec 12 11:17:00 UTC 2015


#35028: WP_Error objects returned by REST API validation callbacks aren't formatted
correctly
----------------------------------------+------------------------------
 Reporter:  bradyvercher                |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  REST API                    |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  has-patch => has-patch needs-unit-tests


Comment:

 There are couple of tests for the `has_valid_params()` method already. It
 would be good to have a test for this as well.

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


More information about the wp-trac mailing list