| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Module Name: Shortcode Embeds |
| 4 | - * Module Description: Easily embed rich media like YouTube videos and tweets using simple shortcodes. | |
| 4 | + * Module Description: Shortcodes are WordPress-specific markup that let you add media from popular sites. This feature is no longer necessary as the editor now handles media embeds rather gracefully. | |
| 5 | 5 | * Sort Order: 3 |
| 6 | 6 | * First Introduced: 1.1 |
| 7 | 7 | * Major Changes In: 1.2 |
| 8 | 8 | * Requires Connection: No |
| @@ -13,15 +13,8 @@ | ||
| 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 | - | |
| 24 | 17 | /** |
| 25 | 18 | * Transforms the $atts array into a string that the old functions expected |
| 26 | 19 | * |
| 27 | 20 | * The old way was: |
| @@ -55,10 +48,9 @@ | ||
| 55 | 48 | function jetpack_load_shortcodes() { |
| 56 | 49 | // Prevent third-party shortcode plugins when loading shortcode files. |
| 57 | 50 | // Format: shortcode => condition_when_to_skip |
| 58 | 51 | $shortcode_skips = array( |
| 59 | - 'shortcode-utils' => true, // Utils aren't shortcodes. | |
| 60 | - 'soundcloud' => function_exists( 'soundcloud_shortcode' ), // SoundCloud Shortcodes plugin | |
| 52 | + 'soundcloud' => function_exists( 'soundcloud_shortcode' ), // SoundCloud Shortcodes plugin | |
| 61 | 53 | ); |
| 62 | 54 | |
| 63 | 55 | $shortcode_includes = array(); |
| 64 | 56 | |