Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 committed Aug 7, 2024
1 parent 0edd608 commit 68dda33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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.
Expand Down

0 comments on commit 68dda33

Please sign in to comment.