Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgba-color-picker not returning default value #385

Closed
danyj opened this issue Mar 20, 2015 · 3 comments
Closed

rgba-color-picker not returning default value #385

danyj opened this issue Mar 20, 2015 · 3 comments
Assignees

Comments

@danyj
Copy link
Contributor

danyj commented Mar 20, 2015

rgba-color-picker is not returning default value when options are reset

    'option_name'  => array(
        'type'  => 'rgba-color-picker',
        'value' => '#f7f7f7',
    ),

is empty, if this option is switched to color-picker it returns #f7f7f7

@danyj
Copy link
Contributor Author

danyj commented Mar 20, 2015

checking against isset instead of empty fixes this

https://github.com/ThemeFuse/Unyson/blob/master/framework/includes/option-types/rgba-color-picker/class-fw-option-type-rgba-color-picker.php#L54

    if ( ! isset( $input_value ) ) {....

@valeriuzdrobau
Copy link
Contributor

Thanks @danyj

@danyj
Copy link
Contributor Author

danyj commented Mar 20, 2015

any time bud , thnx for helping me on my issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants