Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Nov 14, 2024
1 parent d6b0833 commit 2be21c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/Engine/Media/Fonts/Frontend/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2be21c3

Please sign in to comment.