[wp-trac] [WordPress Trac] #56566: Fatal error when WP_REST_Server::dispatch() returns WP_Error

WordPress Trac noreply at wordpress.org
Tue Nov 1 13:30:25 UTC 2022


#56566: Fatal error when WP_REST_Server::dispatch() returns WP_Error
--------------------------------------+--------------------------------
 Reporter:  DaveFX                    |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  6.2
Component:  REST API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------------

Comment (by DaveFX):

 Thanks, @felipeelia.

 I confirm I've made the requested modifications, moving the changes inside
 the `WP_REST_Server::dispatch()` method, that now process the results from
 the `rest_pre_dispatch` filter.

 @TimothyBlynJacobs Please confirm if this would be OK now.

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


More information about the wp-trac mailing list