diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
commit | 018bd442ec1e04ba78a6628763414eb60b359398 (patch) | |
tree | 448cde462397af33e5a964ba5d0803b73c65040e /plugins/jetpack/modules/shortcodes/twitchtv.php | |
parent | Update easy-table 1.8 (diff) | |
download | blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.gz blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.bz2 blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.zip |
Update jetpack 6.8.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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; |