If the path starts with a slash, it will be considered absolute and returned as is earlier in the function. It it's not absolute, then it does not start with a slash, so there is nothing to trim. This change is covered by existing unit tests. Follow-up to [6984], [53457]. Props karlijnbk. See #55897. Built from https://develop.svn.wordpress.org/trunk@53460 git-svn-id: http://core.svn.wordpress.org/trunk@53049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
253 KiB
253 KiB