-
Notifications
You must be signed in to change notification settings - Fork 585
Closed
Description
If you have a custom field like:
array(
'id' => 'typography_h1',
'type' => 'typography',
'title' => 'H1',
'font-backup' => true,
'text-transform' => true,
'default' => array(
'color' => '#888888',
'font-family' => 'Montserrat',
'font-backup' => 'Arial, Helvetica, sans-serif',
'font-size' => '26px',
'font-weight' => '400',
'text-align' => 'left',
'text-transform' => 'none',
'line-height' => '32px'
)
)
and you're using following preset:
'typography_h1' => array(
'color' => '#efefef'
)
the in the preset undefined param will also be removed. So after using the preset you get:
'typography_h1' => array(
'color' => '#efefef'
)
and not
'typography_h1' => array(
'color' => '#efefef',
'font-family' => 'Montserrat',
'font-backup' => 'Arial, Helvetica, sans-serif',
'font-size' => '26px',
'font-weight' => '400',
'text-align' => 'left',
'text-transform' => 'none',
'line-height' => '32px'
)
as expected.
I think this should be fixed :)
Metadata
Metadata
Assignees
Labels
No labels