PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 15.0
Jetpack – WP Security, Backup, Speed, & Growth v15.0
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/smartframe.php +8 -2 14.9.215.0 View file →
@@ -7,8 +7,12 @@
7 7 *
8 8 * @package automattic/jetpack
9 9 */
10 10
11 +if ( ! defined( 'ABSPATH' ) ) {
12 + exit( 0 );
13 +}
14 +
11 15 if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
12 16 add_action( 'init', 'jetpack_smartframe_enable_embeds' );
13 17 } else {
14 18 jetpack_smartframe_enable_embeds();
@@ -22,10 +26,12 @@
22 26 function jetpack_smartframe_enable_embeds() {
23 27 // Support their oEmbed Endpoint.
24 28 wp_oembed_add_provider( '#https?://(.*?)\.smartframe\.(io|net)/.*#i', 'https://oembed.smartframe.io/', true );
25 29
26 - // Allow script to be filtered to short code (so direct copy+paste can be done).
27 - add_filter( 'pre_kses', 'jetpack_shortcodereverse_smartframe' );
30 + if ( jetpack_shortcodes_should_hook_pre_kses() ) {
31 + // Allow script to be filtered to short code (so direct copy+paste can be done).
32 + add_filter( 'pre_kses', 'jetpack_shortcodereverse_smartframe' );
33 + }
28 34
29 35 // Actually display the smartframe Embed.
30 36 add_shortcode( 'smartframe', 'jetpack_smartframe_shortcode' );
31 37 }