diff --git a/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php b/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php index eda09f550b0e1..7fbb0a44285b1 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/custom-css/custom-css.php @@ -988,7 +988,7 @@ public static function editor_max_image_size( $dims, $size = 'medium', $context list( $width, $height ) = $dims; // @phan-suppress-next-line PhanUndeclaredClassInCallable - if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::get_content_width' ) && 'large' === $size && 'edit' === $context ) { + if ( class_exists( 'Jetpack' ) && 'large' === $size && 'edit' === $context ) { // @phan-suppress-next-line PhanUndeclaredClassMethod $width = Jetpack::get_content_width(); } @@ -1030,7 +1030,7 @@ public static function set_content_width() { } // @phan-suppress-next-line PhanUndeclaredClassInCallable - if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::get_content_width' ) ) { + if ( class_exists( 'Jetpack' ) ) { // @phan-suppress-next-line PhanUndeclaredClassMethod $GLOBALS['content_width'] = Jetpack::get_content_width(); } @@ -1079,7 +1079,7 @@ public static function load_revision_php() { */ public static function custom_css_loaded() { // @phan-suppress-next-line PhanUndeclaredClassInCallable - if ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::enable_module_configurable' ) ) { + if ( class_exists( 'Jetpack' ) ) { // @phan-suppress-next-line PhanUndeclaredClassMethod Jetpack::enable_module_configurable( __FILE__ ); } @@ -1252,4 +1252,4 @@ public function subvalue() { // phpcs:ignore MediaWiki.Usage.NestedFunctions.Nes } } } -endif; \ No newline at end of file +endif;