ostsolutionss / wp-ajax-newsletter

Automatically exported from code.google.com/p/wp-ajax-newsletter
0 stars 0 forks source link

Weekly Newsletter triggered on every visit to page #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Turn on weekly newsletter
2.
3.

What is the expected output? What do you see instead?
Weekly newsletter is sent on every page visit

What version of the product are you using? On what operating system?

Please provide any additional information below.
in function checkAutomaticNewsletter() for monthly mode, there is check 
against last updated date but there is no such check in weekly mode. so 
mail is sent on every visit to page

Original issue reported on code.google.com by lokesh...@gmail.com on 23 Dec 2009 at 6:28

GoogleCodeExporter commented 9 years ago
I am also facing this issue. Not sure why the plugin author is not responding

Original comment by dhiv...@gmail.com on 6 Apr 2010 at 5:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here, don't have problem. In line 166 -> $lastWeek = mysql2date("W",$last) + 0; 
,
there is check. The problem is here -> if($postCount > 0), change to 
if(($lastYear <
$thisYear || $lastWeek < $thisWeek) && $postCount > 0) .  Do you understand ?

Original comment by pauloser...@gmail.com on 16 Apr 2010 at 12:51