[wp-trac] [WordPress Trac] #24134: Video Shortcode ignores sizes and aspect ratio
WordPress Trac
noreply at wordpress.org
Wed Aug 14 09:21:03 UTC 2013
#24134: Video Shortcode ignores sizes and aspect ratio
--------------------------+--------------------------
Reporter: Ipstenu | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.6
Component: Media | Version: 3.6
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+--------------------------
Comment (by Horttcore):
I've just discovered that my width and height attributes from my shortcode
are overwritten in the wp_video_shortcode function.
I've commented these lines out and its working again.
{{{
elseif ( ! is_admin() && $w > $defaults_atts['width'] )
$w = $defaults_atts['width'];
}}}
This [video src="http://xxx/wp-content/uploads/2013/08/ifa-
cs.edit_.fx_.012_finish.flv" width="815" height="459"] will result in a
video width 640 width and 360 height. Anyone got the same problem?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24134#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list