Skip to content

Commit 9bca657

Browse files
committed
fix: move db lookup
1 parent 504ca03 commit 9bca657

File tree

1 file changed

+1
-2
lines changed
  • src/plugins/global-settings/preset-controls

1 file changed

+1
-2
lines changed

src/plugins/global-settings/preset-controls/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ public function use_size_presets_by_default_set_default( $old_version, $new_vers
8787
* @since 3.16.0
8888
*/
8989
public function migrate_global_typography_font_size( $old_version, $new_version ) {
90-
$typography_option = get_option( 'stackable_global_typography' );
91-
9290
if ( ! empty( $old_version ) && version_compare( $old_version, "3.16.0", "<" )
9391
&& ! empty( $typography_option ) && isset( $typography_option[ 0 ] )
9492
) {
93+
$typography_option = get_option( 'stackable_global_typography' );
9594
$typography = $typography_option[ 0 ];
9695
$updated = false;
9796

0 commit comments

Comments
 (0)