Skip to content

Commit

Permalink
Update lib/experimental/webfonts-utils.php
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Wilson <[email protected]>
  • Loading branch information
aristath and peterwilsoncc committed Apr 19, 2022
1 parent 658b6ee commit bea59de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/webfonts-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function _wp_array_keys_to_camel_case( $array ) {
$camel_cased_array = array();

foreach ( $array as $key => $value ) {
$camel_cased_array[ lcfirst( str_replace( '-', '', ucwords( $key, '-' ) ) ) ] = $value;
$camel_cased_array[ _wp_to_kebab_case( $key ) ] = $value;
}

return $camel_cased_array;
Expand Down

0 comments on commit bea59de

Please sign in to comment.