[wp-trac] [WordPress Trac] #46191: WP_REST_Request::has_valid_params() should utilize get_error_messages() and not get_error_message(). Unexpected behavior occurs when you try to WP_Error->add() in the REST API

WordPress Trac noreply at wordpress.org
Sat Oct 24 05:23:21 UTC 2020


#46191: WP_REST_Request::has_valid_params() should utilize get_error_messages() and
not get_error_message(). Unexpected behavior occurs when you try to
WP_Error->add() in the REST API
--------------------------+-----------------------
 Reporter:  tmfespresso   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.7
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------
Changes (by TimothyBlynJacobs):

 * milestone:  Awaiting Review => 5.7


Comment:

 Now that we can merge multiple `WP_Error` objects I think this is
 something we can look at addressing. Milestoning for 5.7

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


More information about the wp-trac mailing list