[wp-trac] [WordPress Trac] #38976: REST API: Allow multiple leading slashes at the beginning of the endpoint path

WordPress Trac noreply at wordpress.org
Tue Nov 29 05:02:08 UTC 2016


#38976: REST API: Allow multiple leading slashes at the beginning of the endpoint
path
--------------------------+-----------------------
 Reporter:  jnylen0       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------
 Follow-up to #38873.  The [https://wordpress.org/plugins/rest-api-console/
 official API console] is currently broken on all of my sites due to a
 duplicated slash in between the REST prefix and the namespace (`wp-
 json//wp/v2/posts`):

   [[Image(https://nylen.io/rest-api-console-double-slash.png, 428px)]]

 Since this is an easy mistake to make, and it's broken in a released
 plugin, let's fix it.

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


More information about the wp-trac mailing list