Skip to content

Commit

Permalink
Dependent attributes: Fix issue when formating dependent attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-jaussaud committed Jan 6, 2025
1 parent 7887b70 commit c06bf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}

if ( ! empty($args['dependent']) && is_array($args['dependent']) ) {
$args = $fields->format_value($args['dependent'], 'callback_data', 'callbackData');
$args['dependent'] = $fields->format_value($args['dependent'], 'callback_data', 'callbackData');
}

return $args;
Expand Down

0 comments on commit c06bf60

Please sign in to comment.