From f9b031c37986fb1e6a2089b6a65c1f6d780775ed Mon Sep 17 00:00:00 2001 From: Kaspars Date: Sun, 6 Dec 2015 16:11:35 +0200 Subject: [PATCH] Add default excludes --- include/helpers.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/helpers.php b/include/helpers.php index d463e69..3189115 100644 --- a/include/helpers.php +++ b/include/helpers.php @@ -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 ); + +}