Skip to content

Commit 8e67fa1

Browse files
committed
move code
1 parent 9735c9a commit 8e67fa1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/compatibility/blocksy/index.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,14 @@ function( $file ) {
179179
}
180180
}
181181
}
182-
}
183182

184-
// sanitize styles from files
185-
$styles_from_files = stackable_sanitize_css_string( $styles_from_files );
183+
if ( $styles_from_files ) {
184+
// sanitize styles from files
185+
$styles_from_files = stackable_sanitize_css_string( $styles_from_files );
186+
$styles .= $styles_from_files;
187+
}
188+
}
186189

187-
$styles .= $styles_from_files;
188190
return $styles;
189191
}
190192

0 commit comments

Comments
 (0)