Skip to content

Commit 95bd98e

Browse files
Allow test PHP constant override Codeinwp/visualizer-pro#396
1 parent 1db6953 commit 95bd98e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ function visualizer_launch() {
7373
define( 'VISUALIZER_REST_VERSION', 1 );
7474
// if the below is true, then the js/customization.js in the plugin folder will be used instead of the one in the uploads folder (if it exists).
7575
// this is also used in Block.php
76-
define( 'VISUALIZER_TEST_JS_CUSTOMIZATION', false );
76+
if ( ! defined( 'VISUALIZER_TEST_JS_CUSTOMIZATION' ) ) {
77+
define( 'VISUALIZER_TEST_JS_CUSTOMIZATION', false );
78+
}
7779

7880
if ( ! defined( 'VISUALIZER_CSV_DELIMITER' ) ) {
7981
define( 'VISUALIZER_CSV_DELIMITER', ',' );

0 commit comments

Comments
 (0)