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

Hero: 2.0.0 Dimming 0/100 error #62

Closed
Mil1 opened this issue Feb 17, 2022 · 2 comments
Closed

Hero: 2.0.0 Dimming 0/100 error #62

Mil1 opened this issue Feb 17, 2022 · 2 comments
Labels
Milestone

Comments

@Mil1
Copy link

Mil1 commented Feb 17, 2022

Hello,

Is very nice starter theme i love use it !

In the Hero block the dimming to 0 no work, I think it's due to a mathematical error: <?php echo esc_attr($data['dimming_opacity'] / 100); ?>

But not, is just the if (isset($f['dimming']) && !empty($f['dimming'])) { of 0 return default value of $placeholders

Thank you

@TeemuSuoranta
Copy link
Contributor

Hi!

This is true. I should add check for division by 0 situation as PHP might go full fatal error with that one.

@TeemuSuoranta TeemuSuoranta added this to the 6.2.1 milestone Feb 21, 2022
@TeemuSuoranta
Copy link
Contributor

Seems like there was another bug that was keeping the division by 0 from appearing by default as having 0 dimming resulted using the default dimming (20) instead of user selected 0. This is now fixed in dev branch and I'll close this issue when it is merged.

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

No branches or pull requests

2 participants