From 68dda33e9ce41329af5e3d554b53eeda7a5a1db5 Mon Sep 17 00:00:00 2001 From: arthur Date: Wed, 7 Aug 2024 11:33:48 +0800 Subject: [PATCH] Fix lint --- .../src/features/wpcom-legacy-fse/wpcom-legacy-fse.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-legacy-fse/wpcom-legacy-fse.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-legacy-fse/wpcom-legacy-fse.php index aa08e1979c83e..8418dde88f403 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-legacy-fse/wpcom-legacy-fse.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-legacy-fse/wpcom-legacy-fse.php @@ -142,7 +142,7 @@ function load_wpcom_fse() { * not aware of content sections outside of post_content yet. */ function enqueue_coblocks_gallery_scripts() { - if ( ! function_exists( 'CoBlocks' ) || ! is_full_site_editing_active() ) { + if ( ! defined( 'COBLOCKS_VERSION' ) || ! function_exists( 'CoBlocks' ) || ! is_full_site_editing_active() ) { return; } @@ -151,9 +151,11 @@ function enqueue_coblocks_gallery_scripts() { $footer = $template->get_template_content( 'footer' ); // Define where the asset is loaded from. + // @phan-suppress-next-line PhanUndeclaredFunction $dir = CoBlocks()->asset_source( 'js' ); // Define where the vendor asset is loaded from. + // @phan-suppress-next-line PhanUndeclaredFunction $vendors_dir = CoBlocks()->asset_source( 'js', 'vendors' ); // Masonry block.