Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#2801 closed defect (bug) (fixed)

Fix stripping of leading slashes in get_attachment_link()

Reported by: 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:


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 9 years ago.
The patch
2801.diff (500 bytes) - added by Nazgul 9 years ago.

Download all attachments as: .zip

Change History (4)

9 years ago

#1 @Nazgul
9 years ago

  • Keywords has-patch added
  • Milestone set to 2.3

Patch refreshed

#2 @westi
8 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.