Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44564, comment 5


Ignore:
Timestamp:
07/18/2018 10:14:18 AM (8 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44564, comment 5

    initial v1  
    33I can see how it's confusing though. Maybe it should add the slash if it's missing after removing the protocol and domain, but be smart enough not to touch the path if it's already relative.
    44
    5 Or, since it's supposed to return a root-relative path rather than a "true" relative path, maybe always adding the slash would be expected.
     5Or, since it's supposed to return a root-relative path rather than a "true" relative path, maybe always adding the missing slash would be expected.
    66
    77That said, it's not used in core since 2.5, we should search the plugin repo to see how it's used.