[wp-trac] [WordPress Trac] #29474: oEmbed previews ignore width and height attributes
WordPress Trac
noreply at wordpress.org
Tue Sep 2 19:29:27 UTC 2014
#29474: oEmbed previews ignore width and height attributes
--------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Embeds | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-------------------------
Steps to reproduce:
Paste the following into the editor:
`[embed width="200"
height="200"]https://www.youtube.com/watch?v=n52tAhXzO5E&hd=1[/embed] `
Note that the preview which appears does not respect the width and height
attributes of the `[embed]` shortcode.
This has been narrowed down to a lack of `wp_unslash()` on
`$_POST['shortcode']` in `wp_ajax_parse_embed()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29474>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list