[wp-trac] [WordPress Trac] #45447: Add Embed Preview support for classic embed providers

WordPress Trac noreply at wordpress.org
Thu Nov 29 15:27:59 UTC 2018


#45447: Add Embed Preview support for classic embed providers
--------------------------+-------------------------
 Reporter:  swissspidy    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.0.1
Component:  Embeds        |    Version:  5.0
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  rest-api      |
--------------------------+-------------------------
 In #45142 we ported over the logic from `gutenberg_filter_oembed_result()`
 directly to core in `\WP_oEmbed_Controller::get_proxy_item()`.

 However, we somehow missed to add the changes from
 https://github.com/WordPress/gutenberg/pull/6345 as well. Basically, we
 didn't use the most up to date version of
 `gutenberg_filter_oembed_result()`.

 We also need to call `\WP_Embed::shortcode()` in
 `\WP_oEmbed_Controller::get_proxy_item()` to add back support for classic
 embeds.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45447>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list