Skip to content

Commit 3b93cf1

Browse files
authored
Merge pull request #153 from contactashish13/#152
chart 2nd step not workin #152
2 parents a712b5c + a8e7d42 commit 3b93cf1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function _sendResponse( $results ) {
7777
nocache_headers();
7878

7979
echo json_encode( $results );
80-
wp_die();
80+
defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit();
8181
}
8282

8383
/**
@@ -265,7 +265,7 @@ public function renderChartPages() {
265265
break;
266266
}
267267

268-
wp_die();
268+
defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit();
269269
}
270270

271271
/**
@@ -490,7 +490,7 @@ public function uploadData() {
490490
}
491491

492492
$render->render();
493-
wp_die();
493+
defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit();
494494
}
495495

496496
/**
@@ -629,6 +629,6 @@ public function exportData() {
629629
));
630630
}// End if().
631631

632-
wp_die();
632+
defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit();
633633
}
634634
}

0 commit comments

Comments
 (0)