WordPress.org

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:

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

Download all attachments as: .zip

Change History (4)

@Libertus9 years ago

The patch

@Nazgul8 years ago

comment:1 @Nazgul8 years ago

  • Keywords has-patch added
  • Milestone set to 2.3

Patch refreshed

comment:2 @westi8 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.