From b5b17e90fa15dfec1dfa10f3183d1e6fd7e20f34 Mon Sep 17 00:00:00 2001 From: "lokapure.girish" Date: Wed, 27 Sep 2023 23:25:00 +0530 Subject: [PATCH] changed typography to fonts --- includes/Events.php | 2 +- includes/Flows/Upgrades/1.0.0.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Events.php b/includes/Events.php index da3469e..56f40dc 100644 --- a/includes/Events.php +++ b/includes/Events.php @@ -29,7 +29,7 @@ final class Events { 'primary_type_set' => true, 'secondary_type_set' => true, 'theme_style_selected' => true, - 'typography_selected' => true, + 'fonts_selected' => true, 'header_selected' => true, 'homepage_layout_selected' => true, 'onboarding_top_priority_set' => true, diff --git a/includes/Flows/Upgrades/1.0.0.php b/includes/Flows/Upgrades/1.0.0.php index 0151165..2989dd1 100644 --- a/includes/Flows/Upgrades/1.0.0.php +++ b/includes/Flows/Upgrades/1.0.0.php @@ -12,8 +12,8 @@ if ( ! empty( $flow_data['data']['palette']['slug'] ) ) { $flow_data['data']['colorStyle'] = $flow_data['data']['palette']['slug']; } - if ( ! empty( $flow_data['data']['typography']['slug'] ) ) { - $flow_data['data']['fontStyle'] = $flow_data['data']['typography']['slug']; + if ( ! empty( $flow_data['data']['fonts']['slug'] ) ) { + $flow_data['data']['fontStyle'] = $flow_data['data']['fonts']['slug']; } \update_option( Options::get_option_name( 'flow' ), $flow_data ); }