diff --git a/wptt-webfont-loader.php b/wptt-webfont-loader.php index 175a63f..52243bf 100644 --- a/wptt-webfont-loader.php +++ b/wptt-webfont-loader.php @@ -230,8 +230,10 @@ public function get_local_stylesheet_contents() { return false; } } - - return file_get_contents( $local_path ); // phpcs:ignore WordPress.WP.AlternativeFunctions + + ob_start(); + include $local_path; + return ob_get_clean(); } /**