From 488ba9df6b0c79d67090cc27abb3a99d5d38c22d Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Wed, 28 Sep 2022 16:47:28 +0200
Subject: [PATCH] Removed debug output

---
 knowledge-space.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/knowledge-space.php b/knowledge-space.php
index 4cf6b5c..8336e53 100644
--- a/knowledge-space.php
+++ b/knowledge-space.php
@@ -44,12 +44,12 @@ function ks_echo_graph($atts = []): void
 function ks_localize($handle, $atts)
 {
     $params = parse_atts($atts);
-    if ($GLOBALS['build'] == 'debug'){
-        echo '<pre>';
-        echo "Shortcode attributes:<br>";
-        print_r($params);
-        echo '</pre>';
-    }
+    // if ($GLOBALS['build'] == 'debug'){
+    //     echo '<pre>';
+    //     echo "Shortcode attributes:<br>";
+    //     print_r($params);
+    //     echo '</pre>';
+    // }
 
     $space_id = kg_get_space_id_from_atts($atts); // TODO: Replace with $params
     $plugin_dir = plugin_dir_url(__FILE__);
@@ -135,4 +135,4 @@ require_once(__DIR__ . '/src/datasets.php');
 
 //add_action('wp_enqueue_scripts', 'kg_load_css');
 add_shortcode('knowledge-space', 'ks_add_graph');
-add_shortcode('knowledge-space-editor', 'ks_add_editor');
+add_shortcode('knowledge-space-editor', 'ks_add_editor');
\ No newline at end of file
-- 
GitLab