PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.1-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.1-beta
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
← All changes | modules/shortcodes/googleapps.php +8 -1 14.2.216.1-beta View file →
@@ -35,9 +35,16 @@
35 35 *
36 36 * @package automattic/jetpack
37 37 */
38 38
39 -add_filter( 'pre_kses', 'googleapps_embed_to_shortcode' );
39 +if ( ! defined( 'ABSPATH' ) ) {
40 + exit( 0 );
41 +}
42 +
43 +if ( jetpack_shortcodes_should_hook_pre_kses() ) {
44 + add_filter( 'pre_kses', 'googleapps_embed_to_shortcode' );
45 +}
46 +
40 47 add_shortcode( 'googleapps', 'googleapps_shortcode' );
41 48
42 49 /**
43 50 * Reverse iframe embed to shortcode mapping HTML attributes to shortcode attributes.