Skip to content

Commit

Permalink
changed typography to fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
girish-lokapure committed Sep 27, 2023
1 parent 3076e11 commit b5b17e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions includes/Flows/Upgrades/1.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

0 comments on commit b5b17e9

Please sign in to comment.