diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/twitchtv.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/twitchtv.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/jetpack/modules/shortcodes/twitchtv.php b/plugins/jetpack/modules/shortcodes/twitchtv.php index 6b86f6eb..a5439d05 100644 --- a/plugins/jetpack/modules/shortcodes/twitchtv.php +++ b/plugins/jetpack/modules/shortcodes/twitchtv.php @@ -7,7 +7,7 @@ /** * (Live URL) http://www.twitch.tv/paperbat - * + * * <iframe src="https://player.twitch.tv/?autoplay=false&muted=false&channel=paperbat" width="620" height="378" frameborder="0" scrolling="no" allowfullscreen></iframe> * * (Archive URL) http://www.twitch.tv/paperbat/v/323486192 @@ -26,8 +26,9 @@ function wpcom_twitchtv_shortcode( $atts ) { 'url' => '', 'autoplay' => 'false', 'muted' => 'false', - 'time' => null - ), $atts + 'time' => null, + ), + $atts ); if ( empty( $attr['url'] ) ) { @@ -39,11 +40,11 @@ function wpcom_twitchtv_shortcode( $atts ) { $url_args = array( 'autoplay' => ( false !== $attr['autoplay'] && 'false' !== $attr['autoplay'] ) ? 'true' : 'false', 'muted' => ( false !== $attr['muted'] && 'false' !== $attr['muted'] ) ? 'true' : 'false', - 'time' => $attr['time'] + 'time' => $attr['time'], ); - $width = intval( $attr['width'] ); - $height = intval( $attr['height'] ); + $width = intval( $attr['width'] ); + $height = intval( $attr['height'] ); $user_id = $match[1]; $video_id = 0; |