| @@ -7,10 +7,16 @@ | ||
| 7 | 7 | * |
| 8 | 8 | * @package automattic/jetpack |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 12 | + exit( 0 ); | |
| 13 | +} | |
| 14 | + | |
| 11 | 15 | add_shortcode( 'kickstarter', 'jetpack_kickstarter_shortcode' ); |
| 12 | -add_filter( 'pre_kses', 'jetpack_kickstarter_embed_to_shortcode' ); | |
| 16 | +if ( jetpack_shortcodes_should_hook_pre_kses() ) { | |
| 17 | + add_filter( 'pre_kses', 'jetpack_kickstarter_embed_to_shortcode' ); | |
| 18 | +} | |
| 13 | 19 | |
| 14 | 20 | /** |
| 15 | 21 | * Parse shortcode arguments and render its output. |
| 16 | 22 | * |