[wp-trac] [WordPress Trac] #57048: Handle trailing slashes in rest_preload_api_request

WordPress Trac noreply at wordpress.org
Wed Oct 9 17:19:41 UTC 2024


#57048: Handle trailing slashes in rest_preload_api_request
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:  rest-api
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 Me and @swissspidy came across this issue while working web stories
 together. We patched it in our own code.
 [https://github.com/GoogleForCreators/web-stories-
 wp/blob/dcb4fe9f41ea81865adc8004cf44dbd799129f81/includes/namespace.php#L178-L243
 Here] is our version of this function.

 I can't remember now how we fixed this issue, but look at the git history.

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


More information about the wp-trac mailing list