Jelajahi Sumber

Fixed typo in migration logic

Jason Crist 3 tahun lalu
induk
melakukan
086b9cef44
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      blockbase/inc/fonts/custom-font-migration.php

+ 1 - 1
blockbase/inc/fonts/custom-font-migration.php

@@ -14,7 +14,7 @@ function migrate_blockbase_custom_fonts() {
 
 	// Extract font slugs from legacy data structure.
 	// Look first for fonts customized via Customizer, then for fonts configured in the child theme.json "the old way"
-	if ( isset( $font_['custom'] ) && is_array( $font_settings['custom'] ) ) {
+	if ( isset( $font_settings['custom'] ) && is_array( $font_settings['custom'] ) ) {
 		$font_stuff = $font_settings['custom'];
 	} else {
 		$font_stuff = $font_settings['theme'];