Skip to content

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

Description

@mclwill

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions