Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#2801 closed defect (bug) (fixed)

Fix stripping of leading slashes in get_attachment_link()

Reported by: libertus's profile Libertus Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.1
Component: General Keywords: attachment permalink leading slash strip trim has-patch
Focuses: Cc:

Description

Generation of the attachment link from the permalink unintentionally strips leading slashes. This patch corrects it.

Attachments (2)

get_attachment_link-trim-fix.diff (555 bytes) - added by Libertus 19 years ago.
The patch
2801.diff (500 bytes) - added by Nazgul 18 years ago.

Download all attachments as: .zip

Change History (4)

@Nazgul
18 years ago

#1 @Nazgul
18 years ago

  • Keywords has-patch added
  • Milestone set to 2.3

Patch refreshed

#2 @westi
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6095]) Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus

Note: See TracTickets for help on using tickets.