Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 committed Aug 26, 2024
1 parent 8e95857 commit 960f993
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {

Check failure on line 80 in projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php

View workflow job for this annotation

GitHub Actions / Static analysis

UndefError PhanUndeclaredClassInCallable Reference to undeclared class \Jetpack in callable \Jetpack::init
// @phan-suppress-next-line PhanUndeclaredClassMethod, PhanUndeclaredClassInCallable

Check failure on line 81 in projects/packages/jetpack-mu-wpcom/src/features/blog-privacy/blog-privacy.php

View workflow job for this annotation

GitHub Actions / Static analysis

Plugin UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredClassInCallable on this line but this suppression is unused or suppressed elsewhere
$jetpack = \Jetpack::init();
remove_action( 'wp_head', array( $jetpack, 'check_open_graph' ), 1 );
}
Expand Down

0 comments on commit 960f993

Please sign in to comment.