Opened 12 years ago
Closed 12 years ago
#23879 closed defect (bug) (fixed)
Media post formats look at attachments before content, resulting in duplication
Reported by: | markjaquith | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 3.6 | Priority: | high |
Severity: | major | Version: | 3.6 |
Component: | Post Formats | Keywords: | |
Focuses: | Cc: |
Description
If you attach a media file to an audio/video post and then embed it in the content, the file will be grabbed from the first attachment first. Without touching the content. So then you get duplication if you're using the_video()
say... the_video()
will output the video, but the video won't be removed from the content, since that's not how it was grabbed.
The fix there is to look in the content first, and only fall back to grabbing the first attachment as a method of last resort.
Change History (1)
Note: See
TracTickets for help on using
tickets.
In 23840: