| @@ -32,13 +32,8 @@ | ||
| 32 | 32 | if ( static::enqueue_style( $font_name ) ) { |
| 33 | 33 | return true; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - $is_local_gf_enabled = (bool) get_option( 'elementor_local_google_fonts', '0' ); | |
| 37 | - if ( ! $is_local_gf_enabled ) { | |
| 38 | - $force_enqueue_from_cdn = true; | |
| 39 | - } | |
| 40 | - | |
| 41 | 36 | if ( $force_enqueue_from_cdn || ! static::fetch_font_data( $font_name, $font_type ) ) { |
| 42 | 37 | static::enqueue_from_cdn( $font_name, $font_type ); |
| 43 | 38 | return false; |
| 44 | 39 | } |
| @@ -257,8 +252,9 @@ | ||
| 257 | 252 | $font_url = static::get_google_fonts_remote_url( $font_name, $font_type ); |
| 258 | 253 | |
| 259 | 254 | $sanitize_font_name = static::sanitize_font_name( $font_name ); |
| 260 | 255 | |
| 256 | + // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion | |
| 261 | 257 | wp_enqueue_style( |
| 262 | 258 | 'elementor-gf-' . $sanitize_font_name, |
| 263 | 259 | $font_url, |
| 264 | 260 | [], |