Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4607 closed enhancement (fixed)

ABSPATH already has a trailing slash

Reported by: Nazgul Owned by: Nazgul
Priority: low Milestone: 2.3
Component: Optimization Version: 2.3
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

The following (pseudo)code occurs a couple of times in the codebase.

include(ABSPATH . '/something.php')

But because ABSPATH by default already has a trailing slash, the extra slash is not needed.

I've made a patch which removes those extra slashes where needed.

Attachments (1)

4607.diff​ (5.2 KB ) - added by Nazgul 19 years ago.

Download all attachments as: .zip

Change History (3)

@Nazgul
19 years ago

#1 @Nazgul
19 years ago

  • Keywords commit added
  • Owner changed from anonymous to Nazgul
  • Status new → assigned

#2 @markjaquith
19 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [5820]) ABSPATH already has a trailing slash. Props Nazgul. fixes #4607

Note: See TracTickets for help on using tickets.