| @@ -16,10 +16,10 @@ | ||
| 16 | 16 | * Constructor |
| 17 | 17 | * return void |
| 18 | 18 | */ |
| 19 | 19 | public function __construct() { |
| 20 | - add_action( 'wp_enqueue_scripts', [ $this, 'fonts_loader' ], 9999); | |
| 21 | - add_action( 'admin_enqueue_scripts', [ $this, 'fonts_loader' ], 9999 ); | |
| 20 | + add_action( 'wp_enqueue_scripts', [ $this, 'fonts_loader' ], 10); | |
| 21 | + add_action( 'admin_enqueue_scripts', [ $this, 'fonts_loader' ], 10 ); | |
| 22 | 22 | add_action('gutsliders_render_block', [ $this, 'font_generator' ]); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| @@ -51,9 +51,8 @@ | ||
| 51 | 51 | |
| 52 | 52 | if ( ! empty( $fonts ) ) { |
| 53 | 53 | |
| 54 | 54 | $system = array( |
| 55 | - 'Default', | |
| 56 | 55 | 'Arial', |
| 57 | 56 | 'Tahoma', |
| 58 | 57 | 'Verdana', |
| 59 | 58 | 'Helvetica', |
| @@ -74,9 +73,9 @@ | ||
| 74 | 73 | if (!empty($gfonts)) { |
| 75 | 74 | $font_array = explode('|', $gfonts); |
| 76 | 75 | |
| 77 | 76 | foreach ($font_array as $font) { |
| 78 | - if (empty($font) || in_array($font, $system, true)) { | |
| 77 | + if (empty($font)) { | |
| 79 | 78 | continue; |
| 80 | 79 | } |
| 81 | 80 | |
| 82 | 81 | $query_args = ['family' => $font]; |