redux-framework
redux-framework copied to clipboard
Small error in field_link_color
Hi all! Found a small error on field_link_color: line 174:
if (count($key) == 1) {
Changed to:
if (count($this->field['compiler']) == 1) {
This way, the compiler array is processed correctly. Also, line 159 need to be changed in order to make the outputer work.
Umm, that should actually work as is. Can you supply the config code you're using so I may debug? Thanks.
Is this part enough?
array(
'id'=>'cv_country_header_links',
'type' => 'link_color',
'compiler' => array('h1 a','h2 a','h3 a','h4 a','h5 a','h6 a'),
'title' => __('Header Links Color', 'cv_country'),
'regular' => true,
'hover' => true,
'active' => true,
'default' => array(
'regular' => '#a34a2a',
'hover' => '#f7941d',
'active' => '#a34a2a'
)
),
That's all I needed. Thanks.
I can confirm this is an issue. I'll work on it.
Pushed v3.2.6.2. Should take care of this for you.