Skip to content

Commit 8ed04f5

Browse files
PRO build failure because test cases fail when PRO is not found
1 parent b2c2f4b commit 8ed04f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,10 @@ public function renderFlattrScript() {
769769
*/
770770
private function handleCSVasString( $data ) {
771771
$source = null;
772-
if ( VISUALIZER_PRO ) {
772+
773+
// do not check for VISUALIZER_PRO here as that is false:
774+
// @issue https://github.com/Codeinwp/visualizer/issues/412
775+
if ( has_filter( 'visualizer_pro_handle_chart_data' ) ) {
773776
$source = apply_filters( 'visualizer_pro_handle_chart_data', $data, '' );
774777
} else {
775778
// data coming in from the text editor.

0 commit comments

Comments
 (0)