[wp-trac] [WordPress Trac] #63102: Remove extra slashes when concatenating ABSPATH with a path, take 2

WordPress Trac noreply at wordpress.org
Mon Mar 17 22:39:00 UTC 2025


#63102: Remove extra slashes when concatenating ABSPATH with a path, take 2
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  low                       |   Milestone:  6.8
Component:  General                   |     Version:
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  coding-standards
--------------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60034" 60034]:
 {{{
 #!CommitTicketReference repository="" revision="60034"
 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.

 Follow-up to [54872], [55720], [57545].

 Props dhruvik18, SergeyBiryukov.
 Fixes #63102.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63102#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list