diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/googleapps.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/googleapps.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/shortcodes/googleapps.php b/plugins/jetpack/modules/shortcodes/googleapps.php index 3ef65aa4..8d40e2e5 100644 --- a/plugins/jetpack/modules/shortcodes/googleapps.php +++ b/plugins/jetpack/modules/shortcodes/googleapps.php @@ -140,7 +140,8 @@ function googleapps_shortcode( $atts ) { 'dir' => 'document', 'query' => '', 'src' => '', - ), $atts + ), + $atts ); if ( isset( $content_width ) && is_numeric( $attr['width'] ) && $attr['width'] > $content_width ) { @@ -174,7 +175,7 @@ function googleapps_shortcode( $atts ) { do_action( 'jetpack_bump_stats_extras', 'embeds', googleapps_service_name( $attr['domain'], $attr['dir'] ) ); return sprintf( - '<iframe src="%s" frameborder="0" width="%s" height="%s" marginheight="0" marginwidth="0"></iframe>', + '<iframe src="%s" frameborder="0" width="%s" height="%s" marginheight="0" marginwidth="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>', esc_url( 'https://' . $attr['domain'] . '.google.com/' . $attr['query'] ), esc_attr( $attr['width'] ), esc_attr( $attr['height'] ) |