redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Small error in field_link_color

Open vertigo7x opened this issue 12 years ago • 5 comments

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.

vertigo7x avatar Apr 23 '14 23:04 vertigo7x

Umm, that should actually work as is. Can you supply the config code you're using so I may debug? Thanks.

dovy avatar Apr 23 '14 23:04 dovy

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'
                    )
                ),

vertigo7x avatar Apr 24 '14 13:04 vertigo7x

That's all I needed. Thanks.

dovy avatar Apr 24 '14 13:04 dovy

I can confirm this is an issue. I'll work on it.

kprovance avatar Apr 27 '14 21:04 kprovance

Pushed v3.2.6.2. Should take care of this for you.

kprovance avatar Apr 27 '14 21:04 kprovance