[wp-trac] [WordPress Trac] #24712: Get errors from wp_oembed_get
WordPress Trac
noreply at wordpress.org
Mon Jul 8 19:23:44 UTC 2013
#24712: Get errors from wp_oembed_get
-------------------------+-----------------------------
Reporter: slushman | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 3.5.2
Severity: normal | Keywords:
-------------------------+-----------------------------
Would it be possible to add error collection to the oEmbed class? It would
be more useful to provide a helpful error when a remote oEmbed source is
not available rather than a generic "there was an issue". As an example,
if you try to use wp_oembed_get() on a YouTube video that is not allowing
embedding, plugins (and/or WP itself) would have the option of returning a
specific error: "The requested video doesn't not allow for embedding".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24712>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list