mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
60b2d59358
`rest_url()` inconsistent addes slashes to the passed path depending on whether the site has pretty permalinks enabled. Apart from being inconsistent, this also caused the unit tests to fail when pretty permalinks are enabled. Props frank-klein. Merges [42250] to the 5.0 branch. Partially reverts [43720]. Fixes #42452. See #41451, #45017. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43766 602fd350-edb4-49c9-b593-d223f7449a82