Skip to content

Commit

Permalink
Add default excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 6, 2015
1 parent a9d291b commit f9b031c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,16 @@ function minit_maybe_ssl_url( $url ) {
return $url;

}

// Exclude handles that are known to cause problems
add_filter( 'minit-exclude-js', 'minit_exclude_defaults' );

function minit_exclude_defaults( $handles ) {

$exclude = array(
'grofiles-cards', // Jetpack Gravatar module
);

return array_merge( $handles, $exclude );

}

0 comments on commit f9b031c

Please sign in to comment.