From 9bf881447707fe62514f3f5eb711c84debed0651 Mon Sep 17 00:00:00 2001 From: Josh Reisner <1551689+joshreisner@users.noreply.github.com> Date: Sat, 5 Mar 2022 20:19:40 -0800 Subject: [PATCH] TSML UI shortcode compatibility with block themes (#722) * defer javascript and trying to suppress header / footer warnings * implementing brian and wayne's suggestions * undoing changes to other template files --- includes/shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/shortcodes.php b/includes/shortcodes.php index d0db4c9c..85cf2cc0 100644 --- a/includes/shortcodes.php +++ b/includes/shortcodes.php @@ -103,7 +103,7 @@ function tsml_ui() { global $tsml_mapbox_key, $tsml_nonce, $tsml_conference_providers, $tsml_language, $tsml_programs, $tsml_program, $tsml_ui_config, $tsml_feedback_addresses; $js = defined('TSML_UI_PATH') ? TSML_UI_PATH : 'https://tsml-ui.code4recovery.org/app.js'; - wp_enqueue_script('tsml_ui', $js); + wp_enqueue_script('tsml_ui', $js, [], false, true); wp_localize_script('tsml_ui', 'tsml_react_config', array_merge( [ 'conference_providers' => $tsml_conference_providers,