@@ 408-413 (lines=6) @@ | ||
405 | $w = $input_w; |
|
406 | $h = $input_h; |
|
407 | } elseif ( 0 === $input_w && 0 === $input_h ) { |
|
408 | if ( isset( $query_args['fmt'] ) && intval( $query_args['fmt'] ) ) { |
|
409 | $w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 ); |
|
410 | } else { |
|
411 | $w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width ); |
|
412 | $h = ceil( ( $w / 16 ) * 9 ); |
|
413 | } |
|
414 | } elseif ( $input_w > 0 ) { |
|
415 | $w = $input_w; |
|
416 | $h = ceil( ( $w / 16 ) * 9 ); |
|
@@ 417-424 (lines=8) @@ | ||
414 | } elseif ( $input_w > 0 ) { |
|
415 | $w = $input_w; |
|
416 | $h = ceil( ( $w / 16 ) * 9 ); |
|
417 | } else { |
|
418 | if ( isset( $query_args['fmt'] ) && intval( $query_args['fmt'] ) ) { |
|
419 | $w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 ); |
|
420 | } else { |
|
421 | $w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width ); |
|
422 | $h = $input_h; |
|
423 | } |
|
424 | } |
|
425 | ||
426 | /** |
|
427 | * Filter the YouTube player width. |