[wp-trac] [WordPress Trac] #45265: REST API: register_rest_route should warn when used improperly.

WordPress Trac noreply at wordpress.org
Fri Jan 11 16:53:51 UTC 2019


#45265: REST API: register_rest_route should warn when used improperly.
--------------------------------------+------------------------
 Reporter:  kraftbj                   |       Owner:  desrosj
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  5.1
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:  rest-api
--------------------------------------+------------------------

Comment (by TimothyBlynJacobs):

 The `do_action( 'rest_api_init' )` in the test case should have the spy
 server passed to match the core behavior in `rest_get_server()`.

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


More information about the wp-trac mailing list