[wp-trac] [WordPress Trac] #29473: oEmbed previews from "Insert from URL" tab have stopped working

WordPress Trac noreply at wordpress.org
Tue Sep 2 21:13:39 UTC 2014


#29473: oEmbed previews from "Insert from URL" tab have stopped working
-------------------------------------+-------------------------------------
 Reporter:  johnbillion              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.0
Component:  Embeds                   |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch dev-         |     Focuses:  javascript,
  feedback                           |  administration
-------------------------------------+-------------------------------------

Comment (by azaozz):

 Patch looks good. Thinking it needs to check whether `response.body`
 exists, so we don't end up with "undefined" in there. Something like:

 {{{
 var html = ( response && response.body ) || '';
 this.$('.embed-container').show().find('.embed-preview').html( html );
 }}}

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


More information about the wp-trac mailing list