[wp-trac] [WordPress Trac] #41299: oEmbed proxy fails to forward maxwidth and maxheight params
WordPress Trac
noreply at wordpress.org
Wed Jul 12 19:44:53 UTC 2017
#41299: oEmbed proxy fails to forward maxwidth and maxheight params
--------------------------+-------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8.1
Component: Embeds | Version: 4.8
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-------------------
oEmbed uses the `maxwidth` and `maxheight` params, and the oEmbed proxy
endpoint added in core as of #40450 uses the same. However, it turns out
that that `WP_oEmbed::fetch()` uses `width` and `height` instead. So
currently passing these `maxwidth` and `maxheight` params have no effect.
This is causing a problem in Gutenberg where the oEmbed needs to be
written into a sandbox iframe that has specific dimensions:
https://github.com/WordPress/gutenberg/pull/1688#issuecomment-314862861
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41299>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list