PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | modules/theme-tools/social-links.php +4 -2 13.8.3 → 16.3-a.7 View file →
@@ -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 /**