-
Notifications
You must be signed in to change notification settings - Fork 329
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
Checkbox and Toggle don't respect "value_pattern" #1467
Comments
I'm finding similar results for Switch. Issue description: Switches do not respect value_pattern and exclude. Version used: 3.0.9
|
@bawright fixed Fix will be included in 3.0.10, until then you can use the development branch. |
@aristath thank you!! |
Hi Aristeides,
|
That's weird... can you please try with this? [
'label' => 'Uppercase',
'type' => 'checkbox',
'default' => false,
'transport' => 'auto',
'output' => [
[
'element' => 'p',
'property' => 'text-transform',
'value_pattern' => 'uppercase',
'exclude' => [ false, 0, '0' ]
]
]
] |
Unfortunately, that doesn't make any difference. |
@kodeoagency that's weird... I just tested your code and it seems to be working fine. |
Hi Aristeides. |
Hi Aristeides, |
@kodeoagency I'm still unable to replicate this one. |
Hi Aristeides. |
BTW: You can see the same issue with the multicolor control output, using choices for different CSS attributes |
@kodeoagency The problem is that you are using The solution is simple: DELETE your |
Thank you very much! You saved my day! |
Issue description:
Checkboxes and Toggles do not respect
value_pattern
andexclude
.Version used:
Tried both, the latest dev and the stable on WP (3.0.9). It works on 3.0.8 as I just tested it.
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
The text was updated successfully, but these errors were encountered: