[wp-trac] [WordPress Trac] #20246: When adding a url to video

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 3 16:57:24 UTC 2012


#20246: When adding a url to video
-------------------------------+------------------------------
 Reporter:  dimitrov.adrian    |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  3.3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Ah, right. I guess it's `WP_oEmbed::_parse_xml()`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/class-
 oembed.php#L204

 Still, `WP_oEmbed::data2html()` should have converted it to an HTML
 string.

 Also, seems that the docs for `wp_oembed_get()` are incorrect. It returns
 false on failure, not the original URL. [attachment:20246.docs.patch]
 fixes that.

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


More information about the wp-trac mailing list