diff --git a/airplane-mode.php b/airplane-mode.php index ed097ce..2ac7414 100644 --- a/airplane-mode.php +++ b/airplane-mode.php @@ -334,7 +334,7 @@ public function block_script_load( $source ) { $parsed = parse_url( $source, PHP_URL_HOST ); // First run the filter to allow a source host to get through. - if ( false === apply_filters( 'airplane_mode_parse_script', true, $parsed ) ) { + if ( false === apply_filters( 'airplane_mode_parse_script', true, $parsed ) || false === $parsed ) { return $source; }