Skip to content

Commit 437a438

Browse files
authored
Update src/Font_Face_Command.php
1 parent f6cb7e7 commit 437a438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Font_Face_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public function install( $args, $assoc_args ) {
8787
$face_settings['fontFamily'] = $assoc_args['font-family'];
8888
}
8989

90-
$font_style = isset( $assoc_args['font-style'] ) ? $assoc_args['font-style'] : 'normal';
90+
$font_style = Utils\get_flag_value( $assoc_args, 'font-style', 'normal' );
9191
$face_settings['fontStyle'] = $font_style;
9292

93-
$font_weight = isset( $assoc_args['font-weight'] ) ? $assoc_args['font-weight'] : '400';
93+
$font_weight = Utils\get_flag_value( $assoc_args, 'font-weight', '400' );
9494
$face_settings['fontWeight'] = $font_weight;
9595

9696
if ( isset( $assoc_args['font-display'] ) ) {

0 commit comments

Comments
 (0)