Skip to content

Commit

Permalink
Use a different approach for checking footer
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 6, 2015
1 parent 1950450 commit a9d291b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/minit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit a9d291b

Please sign in to comment.