From a9d291bba458cc4cf7c3025f231733fb398d32c6 Mon Sep 17 00:00:00 2001 From: Kaspars Date: Sun, 6 Dec 2015 16:01:07 +0200 Subject: [PATCH] Use a different approach for checking footer --- include/minit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/minit.php b/include/minit.php index 151a216..cb667a4 100644 --- a/include/minit.php +++ b/include/minit.php @@ -261,7 +261,7 @@ function minit_js( $todo ) { global $wp_scripts; // Run this only in the footer - if ( 0 !== $wp_scripts->group ) + if ( ! did_action( 'wp_print_footer_scripts' ) ) return $todo; $handle = 'minit-js';