| @@ -13,8 +13,15 @@ | ||
| 13 | 13 | * |
| 14 | 14 | * @package automattic/jetpack |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | + exit( 0 ); | |
| 19 | +} | |
| 20 | + | |
| 21 | +// Load shortcode utils. | |
| 22 | +require_once __DIR__ . '/shortcodes/shortcode-utils.php'; | |
| 23 | + | |
| 17 | 24 | /** |
| 18 | 25 | * Transforms the $atts array into a string that the old functions expected |
| 19 | 26 | * |
| 20 | 27 | * The old way was: |
| @@ -48,9 +55,10 @@ | ||
| 48 | 55 | function jetpack_load_shortcodes() { |
| 49 | 56 | // Prevent third-party shortcode plugins when loading shortcode files. |
| 50 | 57 | // Format: shortcode => condition_when_to_skip |
| 51 | 58 | $shortcode_skips = array( |
| 52 | - 'soundcloud' => function_exists( 'soundcloud_shortcode' ), // SoundCloud Shortcodes plugin | |
| 59 | + 'shortcode-utils' => true, // Utils aren't shortcodes. | |
| 60 | + 'soundcloud' => function_exists( 'soundcloud_shortcode' ), // SoundCloud Shortcodes plugin | |
| 53 | 61 | ); |
| 54 | 62 | |
| 55 | 63 | $shortcode_includes = array(); |
| 56 | 64 | |