Posted: November 18, 2024 at 4:14 pm
I have been using the It took me a while to work this out but “0” & “1” as the argument values work, true/false do not…. The docs never use 0/1, they use true false. If you leave it out it works because the default value is a boolean, not a string, but this is fairly poor design if you are assuming that it will only be used if someone wants to set it to “true” and then relying on that fact that “true” as a string is truthy. You could literally put any string at all in there except “0” and it will show expired value because all strings except “0” are truthy. |
|
I think you should be doing this: In core. EES_Shortcode->sanitize_attributes() on line 160 you are doing basic sanitization of boolean values but not actually converting them. change this to this (why are you checking if it’s meant to be bool but not converting it? Subseqently then remove ‘skip_sanitization’ from show_expired and it should work as users would expect
|
|
The last snippet is from |
|
The support post ‘Events Grid Template – short code argument boolean values’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.