From 2be21c3f2272d0d2b15536a9899d99ee90998084 Mon Sep 17 00:00:00 2001 From: Gael Robin Date: Thu, 14 Nov 2024 15:45:40 +0100 Subject: [PATCH] Rename function --- inc/Engine/Media/Fonts/Frontend/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Engine/Media/Fonts/Frontend/Controller.php b/inc/Engine/Media/Fonts/Frontend/Controller.php index a3c9cbb605..34e9a4944a 100644 --- a/inc/Engine/Media/Fonts/Frontend/Controller.php +++ b/inc/Engine/Media/Fonts/Frontend/Controller.php @@ -133,7 +133,7 @@ protected function get_optimized_markup( string $hash, string $original_url ): s $inline_fonts_css = wpm_apply_filters_typed( 'boolean', 'rocket_host_fonts_locally_inline_css', false ); if ( $inline_fonts_css ) { $raw_path = $this->base_path . $path . '.css'; - $inline_css = $this->set_font_internal_style( $gf_parameters, $raw_path ); + $inline_css = $this->get_font_inline_css( $gf_parameters, $raw_path ); if ( $inline_css ) { return $inline_css; } @@ -169,7 +169,7 @@ public function disable_google_fonts_preload( $disable ): bool { * * @return string|bool */ - private function set_font_internal_style( string $gf_parameters, string $css_path ) { + private function get_font_inline_css( string $gf_parameters, string $css_path ) { if ( ! $css_path ) { return false; }