#51636 closed defect (bug) (fixed)
REST API: Remove trailing slashes when preloading requests
Reported by: | swissspidy | Owned by: | antonvlasenko |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | REST API | Keywords: | good-first-bug has-patch has-unit-tests |
Focuses: | rest-api | Cc: |
Description
Other than rest_api_loaded
, rest_preload_api_request
does not currently remove trailing slashes from the requested path.
For consistency, let's call untrailingslashit()
there as well.
Change History (9)
This ticket was mentioned in Slack in #core-restapi by swissspidy. View the logs.
3 years ago
This ticket was mentioned in PR #1596 on WordPress/wordpress-develop by anton-vlasenko.
3 years ago
#7
- Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed
Trac ticket: https://core.trac.wordpress.org/ticket/51636
anton-vlasenko commented on PR #1596:
3 years ago
#9
Closing this PR because the corresponding trac ticket is closed as fixed.
Note: See
TracTickets for help on using
tickets.
Makes sense to me! This should probably happen right before
$path
is passed to$path_parts = parse_url( $path )
.