Skip to content

Commit 1231d31

Browse files
Merge pull request #414 from Codeinwp/development
Fix issue with usage of filter `visualizer_pro_handle_chart_data`
2 parents 0c01913 + 799af68 commit 1231d31

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)