diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/googleplus.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/googleplus.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/shortcodes/googleplus.php b/plugins/jetpack/modules/shortcodes/googleplus.php index 0a8ae294..950f217c 100644 --- a/plugins/jetpack/modules/shortcodes/googleplus.php +++ b/plugins/jetpack/modules/shortcodes/googleplus.php @@ -20,11 +20,13 @@ add_shortcode( 'googleplus', 'jetpack_googleplus_shortcode_handler' ); function jetpack_googleplus_shortcode_handler( $atts ) { global $wp_embed; - if ( empty( $atts['url'] ) ) + if ( empty( $atts['url'] ) ) { return; + } - if ( ! preg_match( JETPACK_GOOGLEPLUS_EMBED_REGEX, $atts['url'] ) ) + if ( ! preg_match( JETPACK_GOOGLEPLUS_EMBED_REGEX, $atts['url'] ) ) { return; + } return $wp_embed->shortcode( $atts, $atts['url'] ); } |