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

Using Event Types with spaces results in colors not being displayed #35

Open
mclwill opened this issue Mar 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mclwill
Copy link

mclwill commented Mar 7, 2024

We have a number of event types with spaces eg. 'Volunteer Meetup'.

When using the Events Calendar I am not getting the correct color formatting for these type of events

However when these are processed in the get_events_all function in json-all-events.php these types have their color removed.

This code is the reason for this :
if (!ctype_alnum($k)) {
unset($colors[$k]);
}

Not sure why this is needed - I have removed from my implementation and I am getting the result I want.

Not sure if this is a bug or intended. If the latter it would be good to see the documentation reflect this requirement

Agileware Ref: WPCIVIUX-146

@agileware-fj agileware-fj added the bug Something isn't working label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants