emails going to every registered user, regardless of post category
-
Since upgrading to WP 2.7 and S2 10.21, emails which should go to 10 registered users because of subscribed category are going to every registered user (>700 in my case).
I have found that the wp_get_object_terms() in line 402 of class-s2-core.php returns an array with zero items, even though the post has 1 category. Further, when I later cause the post to be re-published, an array of one item is correctly returned, and S2 performs as expected.
Could this be a WP timing issue? Because post creation is still being processed when S2 initially gets called?
If so, I’m not sure what S2 can do about it. But I do think S2 should protect against it. If S2 discovers that a post has zero categories, then it should send zero emails, not send emails to every registered user.
- The topic ‘emails going to every registered user, regardless of post category’ is closed to new replies.