BUG: Before/After HTML Not Filtered On Content Filters

Home Forums Calendar Products Events Calendar PRO BUG: Before/After HTML Not Filtered On Content Filters

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21459
    Andy
    Participant

    When you guys filter the content (e.g. using the theme’s default page template or any of the root theme templates as opposed to The Events Calendar’s default or overrides in /events/), the before and after HTML output is NOT filtered.

    See /lib/tribe-templates.class.php, lines 117-119:

    echo stripslashes(tribe_get_option(‘tribeEventsBeforeHTML’));
    include TribeEventsTemplates::get_current_page_template();
    echo stripslashes(tribe_get_option(‘tribeEventsAfterHTML’));

    Changing to this makes everything so, so nice and clean when writing my hooks/filters:

    echo apply_filters( ‘tribe_events_before_html’, stripslashes(tribe_get_option(‘tribeEventsBeforeHTML’)) );
    include TribeEventsTemplates::get_current_page_template();
    echo apply_filters( ‘tribe_events_after_html’, stripslashes(tribe_get_option(‘tribeEventsAfterHTML’)) );

    Can this get ported to an update? ;]

    #21482
    Joyce Grace
    Member

    Thank you Andy! I will bring this to the attention of our developers.

    #23543
    Joyce Grace
    Member

    Hello Andy, just wanted to let you know your act of kindness in sending us this has been taken into account and we hope will be a fix in the next release 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘BUG: Before/After HTML Not Filtered On Content Filters’ is closed to new replies.