• 5lions

    (@5lions)


    The following file has an obvious bug:

    /events-manager/templates/templates/rss.php

    THIS LINE: (the date of the event)

    ?? ? <pubDate><?php echo date(‘D, d M Y H:i:s +0000′, get_option(’em_last_modified’)); ?></pubDate>

    Needs to be replaced with this FIXED line: (the date the wp post was published)

    ?<pubDate><?php echo date(‘D, d M Y H:i:s +0000’,strtotime($EM_Event->post_date) ); ?></pubDate>

    The way it currently works, if an event is in the future, RSS feed watchers get triggered as having a new event every day, since your code is using the event date which is in the future. Email lists watching the rss feed are triggered every day even though nothing new has been added to the rss feed.

    By switching to the $EM_Event->post_date, this tells RSS feeds when the post was first created, so emails are triggered one time when there is an update that affects the RSS feed.

    Please fix. I provided the code.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUG REPORT and fix included’ is closed to new replies.