Skip to content

Commit

Permalink
fix: internal option mapping didn't fall back
Browse files Browse the repository at this point in the history
  • Loading branch information
alex4401 committed May 23, 2024
1 parent 0abc5c4 commit f09efd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Data/ThemeInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ThemeInfo {

public function __construct( array $info ) {
foreach ( $info as $option => $params ) {
$mapped = self::PUBLIC_TO_PRIVATE_FIELD_MAP[ $option ];
$mapped = self::PUBLIC_TO_PRIVATE_FIELD_MAP[ $option ] ?? $option;

switch ( $option ) {
case 'id':
Expand Down

0 comments on commit f09efd8

Please sign in to comment.