| @@ -10,8 +10,12 @@ | ||
| 10 | 10 | * |
| 11 | 11 | * @package automattic/jetpack |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 15 | + exit( 0 ); | |
| 16 | +} | |
| 17 | + | |
| 14 | 18 | if ( ! class_exists( '\Automattic\Jetpack\Classic_Theme_Helper\Main' ) ) { |
| 15 | 19 | if ( ! function_exists( 'jetpack_social_menu_init' ) ) { |
| 16 | 20 | /** |
| 17 | 21 | * Activate the Social Menu plugin. |
| @@ -24,19 +28,19 @@ | ||
| 24 | 28 | if ( ! current_theme_supports( 'jetpack-social-menu' ) ) { |
| 25 | 29 | return; |
| 26 | 30 | } |
| 27 | 31 | |
| 28 | - /* | |
| 29 | - * Social Menu description. | |
| 30 | - * | |
| 31 | - * Rename the social menu description. | |
| 32 | - * | |
| 33 | - * @module theme-tools | |
| 34 | - * | |
| 35 | - * @since 3.9.0 | |
| 36 | - * | |
| 37 | - * @param string $social_menu_description Social Menu description | |
| 38 | - */ | |
| 32 | + /** | |
| 33 | + * Social Menu description. | |
| 34 | + * | |
| 35 | + * Rename the social menu description. | |
| 36 | + * | |
| 37 | + * @module theme-tools | |
| 38 | + * | |
| 39 | + * @since 3.9.0 | |
| 40 | + * | |
| 41 | + * @param string $social_menu_description Social Menu description | |
| 42 | + */ | |
| 39 | 43 | $social_menu_description = apply_filters( 'jetpack_social_menu_description', __( 'Social Menu', 'jetpack' ) ); |
| 40 | 44 | |
| 41 | 45 | // Register a new menu location |
| 42 | 46 | register_nav_menus( |