From 960f9935ae45aa9809c724d8d51b400619fc075b Mon Sep 17 00:00:00 2001 From: arthur Date: Fri, 23 Aug 2024 19:15:56 +0900 Subject: [PATCH] Fix lint --- .../src/features/blog-privacy/blog-privacy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php b/projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php index f7d15dc613161..0954966d40a01 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php @@ -77,8 +77,8 @@ function remove_og_tags() { } // Avoid calling check_open_graph as it registers the jetpack_og_tags function when running wp_head action. - if ( class_exists( '\Jetpack', false ) ) { - // @phan-suppress-next-line PhanUndeclaredFunction, PhanUndeclaredClassReference + if ( class_exists( '\Jetpack', false ) && is_callable( 'Jetpack::init' ) ) { + // @phan-suppress-next-line PhanUndeclaredClassMethod, PhanUndeclaredClassInCallable $jetpack = \Jetpack::init(); remove_action( 'wp_head', array( $jetpack, 'check_open_graph' ), 1 ); }