WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3735 closed defect (bug) (worksforme)

Link to file path incorrect for non-image files

Reported by: jsekera Owned by: mdawaffe
Milestone: Priority: normal
Severity: normal Version: 2.2
Component: General Keywords:
Focuses: Cc:

Description

When you upload a non-image file (word doc, spreadsheet etc.) and choose “link to file” from the dropdown menu to place it into a page or a post, the path created incorrectly references the wp-admin directory.

Link created is:

http://example.com/wp-admin/test.xls

Should be:

http://example.com/wp-content/uploads/2007/02/test.xls

Change History (3)

comment:1 markjaquith7 years ago

  • Milestone changed from 2.3 to 2.2
  • Owner changed from anonymous to mdawaffe

comment:2 foolswisdom7 years ago

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

Closing as WORKSFORME
ENV: trunk r5241
The link created for me was {{<a href="http://localhost/wp/trunk/wp-content/uploads/2007/04/good-enough-testing.doc" title="good-enough-testing.doc">good-enough-testing.doc</a>}}

comment:3 foolswisdom7 years ago

  • Milestone 2.2 deleted
  • Version set to 2.2
Note: See TracTickets for help on using tickets.