| @@ -17,8 +17,12 @@ | ||
| 17 | 17 | * |
| 18 | 18 | * @package automattic/jetpack |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 22 | + exit( 0 ); | |
| 23 | +} | |
| 24 | + | |
| 21 | 25 | add_shortcode( 'tweet', array( 'Jetpack_Tweet', 'jetpack_tweet_shortcode' ) ); |
| 22 | 26 | |
| 23 | 27 | /** |
| 24 | 28 | * Tweet Shortcode class. |
| @@ -170,6 +174,5 @@ | ||
| 170 | 174 | wp_register_script( 'twitter-widgets', 'https://platform.twitter.com/widgets.js', array(), JETPACK__VERSION, true ); |
| 171 | 175 | wp_print_scripts( 'twitter-widgets' ); |
| 172 | 176 | } |
| 173 | 177 | } |
| 174 | - | |
| 175 | 178 | } // class end |