WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 8 months ago

#43227 new enhancement

Media uploaded to post should remove underscores and hyphens from text inserted into title attribute

Reported by: mrmadhat Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

When adding a new image into a post my file name will typically be called something like:

descriptive-name-of-image.jpg

Once this image is uploaded wp will automatically set the title and will default to the name of the image "descriptive-name-of-image" if no title meta data is available in the image.

I think a better default action would be to replace the hyphens/underscores with spaces and possibly capitalising the first letter making the title "Descriptive name of image".

Change History (1)

#1 @joemcgill
8 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Hi @mrmadhat, thanks for the suggestion. I'm surprised nobody has suggested this already, but I don't see a previous ticket.

Note: See TracTickets for help on using tickets.