Skip to content
Snippets Groups Projects
Commit 488ba9df authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Removed debug output

parent c46fe73f
No related branches found
No related tags found
No related merge requests found
Pipeline #57040 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment