Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#38649 closed defect (bug) (duplicate)

Media: link text for uploaded PDFs doesn't match the filename

Reported by: designsimply's profile designsimply Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

Steps to reproduce:

  1. Go to wp-admin > Posts > Add New
  2. Click the "Add Media" button
  3. Drag a PDF with a filename that includes uppercase and spaces into the media upload area
  4. Make sure "Link to" is set to "Media File"
  5. Click the "Insert into post" button

Result: the link text uses all lowercase and replaces spaces with dashes, but the expected behavior is that the link text will match the case and spacing of the filename itself. This happens regardless of whether a title is set in the meta data for the file.

Example: upload a PDF named 6.2 Wild Colonial Boy, The - Music A G.pdf, the link text is set to “6-2a-wild-colonial-boy-the-music-a-g” instead of the expected “6.2a Wild Colonial Boy, The - Music A G".

Change History (2)

#1 @swissspidy
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Howdy,

Thanks for your report! We're already tracking this issue in #37989.

#2 @designsimply
8 years ago

Thanks @swissspidy! I searched but completely missed 37989!

Note: See TracTickets for help on using tickets.