Skip to content

Commit e2f16ac

Browse files
committed
fix: e2e tests in pro version Codeinwp/visualizer-pro#418
1 parent 9f1cd83 commit e2f16ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

classes/Visualizer/Render/Layout.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,11 @@ class="dashicons dashicons-lock"></span></h2>
872872
<input type="button" id="existing-chart" class="button button-primary"
873873
value="<?php _e( 'Import Chart', 'visualizer' ); ?>"
874874
data-viz-link="<?php echo $fetch_link; ?>">
875-
<?php echo apply_filters( 'visualizer_pro_upsell', '', 'import-chart' ); ?>
875+
<?php
876+
if ( ! Visualizer_Module_Admin::proFeaturesLocked() ) {
877+
echo apply_filters( 'visualizer_pro_upsell', '', 'import-chart' );
878+
}
879+
?>
876880
</div>
877881
</div>
878882
</li>

0 commit comments

Comments
 (0)