| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Module Name: Extra Sidebar Widgets |
| 4 | - * Module Description: Provides additional widgets for use on your site. | |
| 4 | + * Module Description: Add more widget options to your site, like social feeds, subscriptions, and more. | |
| 5 | 5 | * Sort Order: 4 |
| 6 | 6 | * First Introduced: 1.2 |
| 7 | 7 | * Requires Connection: No |
| 8 | 8 | * Auto Activate: No |
| @@ -12,8 +12,12 @@ | ||
| 12 | 12 | * |
| 13 | 13 | * @package automattic/jetpack |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 17 | + exit( 0 ); | |
| 18 | +} | |
| 19 | + | |
| 16 | 20 | /** |
| 17 | 21 | * Load Jetpack widget files. |
| 18 | 22 | */ |
| 19 | 23 | function jetpack_load_widgets() { |
| @@ -35,11 +39,8 @@ | ||
| 35 | 39 | |
| 36 | 40 | foreach ( $widgets_include as $include ) { |
| 37 | 41 | include_once $include; |
| 38 | 42 | } |
| 39 | - | |
| 40 | - include_once __DIR__ . '/widgets/migrate-to-core/image-widget.php'; | |
| 41 | - include_once __DIR__ . '/widgets/migrate-to-core/gallery-widget.php'; | |
| 42 | 43 | } |
| 43 | 44 | |
| 44 | 45 | add_action( 'jetpack_modules_loaded', 'jetpack_widgets_loaded' ); |
| 45 | 46 | /** |