WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 3 months ago

#22768 new enhancement

EXIF/IPTC captions should populate caption/post_excerpt on upload, not description/post_content

Reported by: nacin Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.5
Component: Media Keywords: 3.6-early has-patch
Focuses: Cc:

Description

It's been this way forever, but it is dumping data into the wrong field. Two schools of thought on this:

  • Plugins have used the description field, so we should not change this.
  • Users continue to struggle with moving *captions* from the description field to the caption field, so we should change this.

I am in the latter school of thought. A plugin can remain compatible by ensuring it checks either description or caption before falling back to the other.

Attachments (1)

22768.diff (1.1 KB) - added by beaulebens 5 months ago.
Moves 'caption' from EXIF/IPTC information into the post_excerpt, which is used for the caption field. Also removes one extraneous $content=;

Download all attachments as: .zip

Change History (7)

comment:1 jond3r17 months ago

  • Cc jond3r@… added

comment:2 sbressler16 months ago

  • Cc sbressler@… added

comment:3 DrewAPicture16 months ago

  • Cc xoodrew@… added

comment:4 kraftbj6 months ago

  • Cc bk@… added

comment:5 sbressler6 months ago

Perhaps I'm being a big crazy here, but could we populate post_author from EXIF if there's an exact match?

beaulebens5 months ago

Moves 'caption' from EXIF/IPTC information into the post_excerpt, which is used for the caption field. Also removes one extraneous $content=;

comment:6 helen3 months ago

  • Keywords has-patch added

Didn't realize there was a patch here. What else is needed? Testing? Do we want to talk about any other fields?

Note: See TracTickets for help on using tickets.