浏览代码

Fixed typo in migration logic

Jason Crist 3 年之前
父节点
当前提交
086b9cef44
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.
 	// 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"
 	// 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'];
 		$font_stuff = $font_settings['custom'];
 	} else {
 	} else {
 		$font_stuff = $font_settings['theme'];
 		$font_stuff = $font_settings['theme'];