Skip to content

Commit 9ffaa8a

Browse files
Fix undefine PHP constant error when active Divi theme #898
1 parent e3dceb8 commit 9ffaa8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ private function deleteOldCharts() {
490490
*/
491491
public function renderChartPages() {
492492
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+
}
493496
// Set current screen for the render chart.
494497
set_current_screen( 'visualizer_render_chart' );
495498
// check chart, if chart not exists, will create new one and redirects to the same page with proper chart id

0 commit comments

Comments
 (0)