• Prior to version 18.1 I could create a list of events on our website using (for example – this is a test to prove my point):
    [vsel posts_per_page=”1″ event_cat=”races” class=”vsel-diary vsel-date-bold vsel-show-gp vsel-show-social” date_format=”jS F” no_events_text=”Events to be announced”]

    This produced an HTML output as follows (I have replace the HTML < with [ and > with ] so that that the HTML is visible:
    [div id=”vsel” class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-diary vsel-date-bold vsel-show-gp vsel-show-social”]
    [div id=”event-7221″ class=”vsel-content grand-prix hrrl vsel-upcoming vsel-future”]
    [div class=”vsel-meta” style=”width:100%; box-sizing:border-box;”]
    [h3 class=”vsel-meta-title”][a href=”http://localhost/wordpress/event/hrrl-grand-prix-event/&#8221; rel=”bookmark” title=”HRRL grand prix event”]HRRL grand prix event[/a][/h3]
    [div class=”vsel-meta-date vsel-meta-single-date”][span]31st May[/span][/div][div class=”vsel-meta-location”][span]Next to the Rural Life Museum, The Reeds Rd, Tilford, Farnham GU10 2DL[/span][/div]
    [/div]

    In version 18.1 it now produces:
    [h2]Test VSEL[/h2]
    [div id=”vsel” class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-diaryvsel-date-boldvsel-show-gpvsel-show-social”]
    [div id=”event-7221″ class=”vsel-content grand-prix hrrl vsel-upcoming vsel-future”]
    [div class=”vsel-meta” style=”width:100%; box-sizing:border-box;”]
    [h3 class=”vsel-meta-title”][a href=”http://localhost/wordpress/event/hrrl-grand-prix-event/&#8221; rel=”bookmark” title=”HRRL grand prix event”]HRRL grand prix event[/a][/h3]
    [div class=”vsel-meta-date vsel-meta-single-date”][span]31st May[/span][/div][div class=”vsel-meta-location”][span]Next to the Rural Life Museum, The Reeds Rd, Tilford, Farnham GU10 2DL[/span][/div]
    [/div]

    As you can in the 18.0 version it generates
    class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-diary vsel-date-bold vsel-show-gp vsel-show-social”

    However in the 18.1 version it combines all the classes that I listed in the VSEL shortcode into one single class:
    class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-diaryvsel-date-boldvsel-show-gpvsel-show-social”

    This has caused real problems on the website that I manage. I have rolled back to v18.0 but I do not want to stick at that because I’ll miss future updates that may be important.



Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    Very sorry, in an effort to add more checks/validation I have added the sanitize_key() function which also removed white space characters. My mistake.

    I’m currently working on a major plugin (code) update and will also fix this. Update tomorrow.

    FYI: I will remove the different shortcodes in favour of 1 ([vsel]) and with a newly added attribute you can decide what type events to list (upcoming, past, etc). Without attribute it defaults to upcoming events. More info will be added in changelog and at plugin page.
    I’m doing this to get rid off a lot of duplicate code.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I have updated plugin and this should be fixed now.
    Again, sorry for the inconvenience.
    But please check your event list(s) after plugin update, as mentioned in the changelog.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Version 18.1 messing up class lists’ is closed to new replies.