WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#38649 closed defect (bug) (duplicate)

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

Reported by: 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
6 months 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
6 months ago

Thanks @swissspidy! I searched but completely missed 37989!

Note: See TracTickets for help on using tickets.