[wp-trac] [WordPress Trac] #45142: Filter HTML response in oEmbed proxy controller

WordPress Trac noreply at wordpress.org
Mon Oct 22 07:17:26 UTC 2018


#45142: Filter HTML response in oEmbed proxy controller
--------------------------+-------------------------
 Reporter:  swissspidy    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.0
Component:  Embeds        |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 Related: #43136, https://github.com/WordPress/gutenberg/pull/4226
 (especially
 https://github.com/WordPress/gutenberg/pull/4226#pullrequestreview-91060412)

 The Gutenberg plugin currently contains a custom
 `gutenberg_filter_oembed_result()` function that alters the response from
 `WP_oEmbed_Controller::get_proxy_item()` so that the response is correctly
 filtered and embeds work properly in the block editor.

 For WordPress 5.0, the code from that function needs to be moved directly
 to `WP_oEmbed_Controller::get_proxy_item()` in order to fix that behavior.

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


More information about the wp-trac mailing list