Bläddra i källkod

Removed unneeded variable

Jason Crist 3 år sedan
förälder
incheckning
566a75e6b5
1 ändrade filer med 3 tillägg och 4 borttagningar
  1. 3 4
      blockbase/inc/fonts/custom-font-migration.php

+ 3 - 4
blockbase/inc/fonts/custom-font-migration.php

@@ -4,9 +4,8 @@ add_action( 'init', 'migrate_blockbase_custom_fonts', 99 );
 
 function migrate_blockbase_custom_fonts() {
 
-	$heading_font_slug              = null;
-	$body_font_slug                 = null;
-	$blockbase_provider_fonts_count = 0;
+	$heading_font_slug = null;
+	$body_font_slug    = null;
 
 	// Here we must use gutenberg_get_global_* because it introduces clean_cached_data() which we
 	// need to leverage as we are modifying the values of global styles settings and styles on page load.
@@ -33,7 +32,7 @@ function migrate_blockbase_custom_fonts() {
 		}
 	}
 
-	if ( ! $body_font_slug && ! $heading_font_slug && $blockbase_provider_fonts_count > 0 ) {
+	if ( ! $body_font_slug && ! $heading_font_slug ) {
 		//nothing to convert
 		return;
 	}