@@ -227,7 +227,6 @@ class="dashicons dashicons-lock"></span></h2>
227
227
</li>
228
228
229
229
<?php
230
- if ( strpos ( VISUALIZER_ENABLE_BETA_FEATURES , 'db-query ' ) !== false ) {
231
230
$ save_query = add_query_arg (
232
231
array (
233
232
'action ' => Visualizer_Plugin::ACTION_SAVE_DB_QUERY ,
@@ -278,7 +277,6 @@ class="dashicons dashicons-lock"></span></h2>
278
277
</div>
279
278
</div>
280
279
</li>
281
- <?php } ?>
282
280
283
281
<?php
284
282
// we will auto-open the manual data feature but only when pro is active and source is empty.
@@ -498,14 +496,12 @@ protected function _renderToolbar() {
498
496
* @access private
499
497
*/
500
498
private function add_additional_content () {
501
- if ( strpos ( VISUALIZER_ENABLE_BETA_FEATURES , 'db-query ' ) !== false ) {
502
- $ source = strtolower ( get_post_meta ( $ this ->chart ->ID , Visualizer_Plugin::CF_SOURCE , true ) );
503
- $ query = '' ;
504
- if ( 'visualizer_source_query ' === $ source ) {
505
- $ query = get_post_meta ( $ this ->chart ->ID , Visualizer_Plugin::CF_DB_QUERY , true );
506
- }
507
- Visualizer_Render_Layout::show ( 'db-query ' , $ query );
499
+ $ source = strtolower ( get_post_meta ( $ this ->chart ->ID , Visualizer_Plugin::CF_SOURCE , true ) );
500
+ $ query = '' ;
501
+ if ( 'visualizer_source_query ' === $ source ) {
502
+ $ query = get_post_meta ( $ this ->chart ->ID , Visualizer_Plugin::CF_DB_QUERY , true );
508
503
}
504
+ Visualizer_Render_Layout::show ( 'db-query ' , $ query );
509
505
}
510
506
511
507
}
0 commit comments