WordPress.org

Make WordPress Core

Opened 5 weeks ago

#51636 new defect (bug)

REST API: Remove trailing slashes when preloading requests

Reported by: swissspidy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: REST API Keywords: needs-patch needs-unit-tests
Focuses: 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 (0)

Note: See TracTickets for help on using tickets.