Skip to content

Commit e3dceb8

Browse files
Fix PHP 8.0 or above compatibility issue #898
1 parent f65fc35 commit e3dceb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,11 @@ public function renderChartPages() {
524524
do_action( 'visualizer_pro_new_chart_defaults', $chart_id );
525525
}
526526
wp_redirect( add_query_arg( 'chart', (int) $chart_id ) );
527-
defined( 'WP_TESTS_DOMAIN' ) ? wp_die() : exit();
527+
528+
if ( defined( 'WP_TESTS_DOMAIN' ) ) {
529+
wp_die();
530+
}
531+
exit();
528532
}
529533

530534
$_POST['save_chart_image'] = isset( $_POST['save_chart_image'] ) && 'yes' === $_POST['save_chart_image'] ? true : false;

0 commit comments

Comments
 (0)