PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-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 All 504 releases
← All changes | modules/shortcodes/dailymotion.php +10 -3 13.3.316.3-a.1 View file →
@@ -4,8 +4,12 @@
4 4 *
5 5 * @package automattic/jetpack
6 6 */
7 7
8 +if ( ! defined( 'ABSPATH' ) ) {
9 + exit( 0 );
10 +}
11 +
8 12 /**
9 13 * Original codes:
10 14 *
11 15 * <embed height="270" type="application/x-shockwave-flash" width="480" src="http&#58;//www.dailymotion.com/swf/video/xekmrq?additionalInfos=0" wmode="opaque" pluginspage="http&#58;//www.macromedia.com/go/getflashplayer" allowscriptaccess="never" allownetworking="internal" />
@@ -59,9 +63,8 @@
59 63 }
60 64 }
61 65 return $content;
62 66 }
63 -add_filter( 'pre_kses', 'dailymotion_embed_to_shortcode' );
64 67
65 68 /**
66 69 * DailyMotion shortcode
67 70 *
@@ -334,9 +337,8 @@
334 337 }
335 338
336 339 return $content;
337 340 }
338 -add_filter( 'pre_kses', 'dailymotion_channel_reversal' );
339 341
340 342 /**
341 343 * Dailymotion Embed Reversal (with new iframe code as of 17.09.2014)
342 344 *
@@ -381,5 +383,10 @@
381 383 }
382 384
383 385 return $content;
384 386 }
385 -add_filter( 'pre_kses', 'jetpack_dailymotion_embed_reversal' );
387 +
388 +if ( jetpack_shortcodes_should_hook_pre_kses() ) {
389 + add_filter( 'pre_kses', 'dailymotion_embed_to_shortcode' );
390 + add_filter( 'pre_kses', 'dailymotion_channel_reversal' );
391 + add_filter( 'pre_kses', 'jetpack_dailymotion_embed_reversal' );
392 +}