Skip to content

Commit

Permalink
refactor: pr feedback - added broader empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredrethman committed Sep 20, 2024
1 parent 22c742a commit 4190649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wizards/class-setup-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function api_update_theme_with_mods( $request ) {
continue;
}

if ( ! empty( $value ) && in_array( $key, $this->media_theme_mods ) ) {
if ( ! empty( $value['id'] ) && in_array( $key, $this->media_theme_mods ) ) {
$value = $value['id'];
}
set_theme_mod( $key, $value );
Expand Down

0 comments on commit 4190649

Please sign in to comment.