[wp-trac] [WordPress Trac] #20417: do_enclose() and other functions should use the WP API when dealing with metadata

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 11 17:53:45 UTC 2012


#20417: do_enclose() and other functions should use the WP API when dealing with
metadata
------------------------------+------------------
 Reporter:  nacin             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.4
Component:  Pings/Trackbacks  |     Version:  1.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------

Comment (by designsimply):

 Tested 20417.2.diff with these steps:

 1. Applied 20417.2.diff to !WordPress trunk r20434
 2. Created a new post with audio and video links in it, see example code
 below
 3. Checked the feed page source to see if the proper <enclosure> tags were
 added
 * Results: One enclosure tag was created for each unique audio or video
 link in the post.

 Example post content with audio/video links for testing:

 {{{
 This post has a duplicate video link in it. Check to make sure only one
 enclosure tag is added for this post in the blog's feed.

 <a href="http://videos.videopress.com/w0MiG12E/snow2-its-back-
 h2642_dvd.mp4">Let It Snow</a>

 <a href="http://wpcom.files.wordpress.com/2007/01/mattmullenweg-
 interview.mp3">Matt Mullenweg Interview</a>

 <a href="http://videos.videopress.com/w0MiG12E/snow2-its-back-
 h2642_dvd.mp4">Let It Snow</a>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20417#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list