[wp-trac] [WordPress Trac] #49749: Bug in WordPress API when I have the prefix wp for the custom endpoint

WordPress Trac noreply at wordpress.org
Wed Apr 1 10:45:48 UTC 2020


#49749: Bug in WordPress API when I have the prefix wp for the custom endpoint
-------------------------------------+------------------------------
 Reporter:  skarabeq                 |       Owner:  (none)
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  REST API                 |     Version:  5.4
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:
-------------------------------------+------------------------------

Comment (by afercia):

 Seems to me the namespace pattern is well documented, right?
 https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-
 custom-endpoints/#namespacing

 If the leading slash is confirmed as the cause of the reported issue, I'd
 say this is not a bug and the `/wp/v2` pattern worked in WordPress 5.3.2
 only "by accident".

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


More information about the wp-trac mailing list