| @@ -14,8 +14,12 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | use Automattic\Jetpack\Status\Host; |
| 17 | 17 | |
| 18 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 19 | + exit( 0 ); | |
| 20 | +} | |
| 21 | + | |
| 18 | 22 | // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. |
| 19 | 23 | |
| 20 | 24 | if ( ! function_exists( 'jetpack_theme_supports_social_links' ) ) { |
| 21 | 25 | /** |
| @@ -21,9 +25,8 @@ | ||
| 21 | 25 | /** |
| 22 | 26 | * Init Social_Links if the theme declares support. |
| 23 | 27 | */ |
| 24 | 28 | function jetpack_theme_supports_social_links() { |
| 25 | - // @phan-suppress-next-line PhanNoopNew | |
| 26 | 29 | new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links(); |
| 27 | 30 | } |
| 28 | 31 | if ( ! ( new Host() )->is_wpcom_platform() ) { |
| 29 | 32 | add_action( 'init', 'jetpack_theme_supports_social_links', 30 ); |
| @@ -45,9 +48,8 @@ | ||
| 45 | 48 | * @deprecated 13.8 Moved to Classic Theme Helper package. |
| 46 | 49 | */ |
| 47 | 50 | public function __construct() { |
| 48 | 51 | _deprecated_function( __METHOD__, '13.8', 'Automattic\\Jetpack\\Classic_Theme_Helper\\Social_Links->__construct' ); |
| 49 | - // @phan-suppress-next-line PhanNoopNew | |
| 50 | 52 | new \Automattic\Jetpack\Classic_Theme_Helper\Social_Links(); |
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | /** |