[wp-trac] [WordPress Trac] #23879: Media post formats look at attachments before content, resulting in duplication

WordPress Trac noreply at wordpress.org
Thu Mar 28 07:26:15 UTC 2013


#23879: Media post formats look at attachments before content, resulting in
duplication
-------------------------+--------------------------
 Reporter:  markjaquith  |       Type:  defect (bug)
   Status:  new          |   Priority:  high
Milestone:  3.6          |  Component:  Post Formats
  Version:  trunk        |   Severity:  major
 Keywords:               |
-------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23879>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list