Media post formats look at attachments before content, resulting in duplication
|Reported by:||markjaquith||Owned by:||markjaquith|
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.