Try,
if ( is_admin() ) return $file;
instead. Basically you should always return the filtered content, otherwise you effectively have filtered the $file
to nothing.
Try,
if ( is_admin() ) return $file;
instead. Basically you should always return the filtered content, otherwise you effectively have filtered the $file
to nothing.