File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
classes/Visualizer/Module Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -490,6 +490,9 @@ private function deleteOldCharts() {
490
490
*/
491
491
public function renderChartPages () {
492
492
defined ( 'IFRAME_REQUEST ' ) || define ( 'IFRAME_REQUEST ' , 1 );
493
+ if ( ! defined ( 'ET_BUILDER_PRODUCT_VERSION ' ) && function_exists ( 'et_get_theme_version ' ) ) {
494
+ define ( 'ET_BUILDER_PRODUCT_VERSION ' , et_get_theme_version () );
495
+ }
493
496
// Set current screen for the render chart.
494
497
set_current_screen ( 'visualizer_render_chart ' );
495
498
// check chart, if chart not exists, will create new one and redirects to the same page with proper chart id
@@ -524,7 +527,11 @@ public function renderChartPages() {
524
527
do_action ( 'visualizer_pro_new_chart_defaults ' , $ chart_id );
525
528
}
526
529
wp_redirect ( add_query_arg ( 'chart ' , (int ) $ chart_id ) );
527
- defined ( 'WP_TESTS_DOMAIN ' ) ? wp_die () : exit ();
530
+
531
+ if ( defined ( 'WP_TESTS_DOMAIN ' ) ) {
532
+ wp_die ();
533
+ }
534
+ exit ();
528
535
}
529
536
530
537
$ _POST ['save_chart_image ' ] = isset ( $ _POST ['save_chart_image ' ] ) && 'yes ' === $ _POST ['save_chart_image ' ] ? true : false ;
You can’t perform that action at this time.
0 commit comments