[wp-trac] [WordPress Trac] #24712: Get errors from wp_oembed_get

WordPress Trac noreply at wordpress.org
Tue Feb 17 21:26:47 UTC 2015


#24712: Get errors from wp_oembed_get
-------------------------+-----------------------------
 Reporter:  slushman     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  low          |   Milestone:  Future Release
Component:  Embeds       |     Version:  3.5.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by GunGeekATX):

 * keywords:  needs-patch => has-patch


Comment:

 Added an ''$errors'' array and ''$xml_errors'' property to expose the more
 descriptive XML errors.  Also exposed the response as ''$response_body''
 so a developer can add any custom handling to a response if if was unable
 to be parsed.  For example, YouTube returns "Unauthorized" for a video
 that has embedding disabled.  They also return it as a 401 HTTP error, so
 maybe we want to take a look at exposing the HTTP response code as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24712#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list