[wp-trac] [WordPress Trac] #34416: Require the $namespace argument in register_rest_route()

WordPress Trac noreply at wordpress.org
Fri Oct 23 17:21:47 UTC 2015


#34416: Require the $namespace argument in register_rest_route()
-----------------------------+-----------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  4.4
Component:  REST API         |    Version:
 Severity:  normal           |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------
 Per discussion on [https://wordpress.slack.com/archives/core-
 restapi/p1440458533000138 Slack], we should return `true` on success, and
 add a `_doing_it_wrong()` and return `false` if the `$namespace` parameter
 is empty.

 Originally https://github.com/WP-API/WP-API/issues/1505

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list