[wp-trac] [WordPress Trac] #57074: Remove extra slashes when concatenating ABSPATH with a path
WordPress Trac
noreply at wordpress.org
Thu Nov 24 22:09:53 UTC 2022
#57074: Remove extra slashes when concatenating ABSPATH with a path
--------------------------------------+-------------------------------
Reporter: TobiasBg | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Changes (by audrasjb):
* owner: (none) => audrasjb
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"54872" 54872]:
{{{
#!CommitTicketReference repository="" revision="54872"
Coding Standards: Remove extra slashes when concatenating `ABSPATH` with a
path.
Since `ABSPATH` is defined and documented to end with a forward slash `/`,
this changeset removes the first `/` from strings appended to `ABSPATH` in
various files, leading to `//` in the resulting path.
Props TobiasBg, audrasjb, SergeyBiryukov, emanuelx.
Fixes #57074.
See #57071.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57074#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list