Emails not sent – at least two bugs in plugin
-
This plugin has several major bugs in it.
a) Your code is meant to only postpone notifications generated from the front-end, not the backend. It tries to do this by return false in the applies() function in Postponed.php.
However, with the Gutenberg editor which has been around for a long time now, is_admin() returns false, as changes uses the REST Api. So all notifications in the backend are postponed too.
b) Your code handles postponed notifications by calling set_transient. It then hooks into the wp_loaded action to fetch all transients that match a certain pattern directly from the database.
However, transients should never be fetched directly from the database; if you use a host that enables object caching (standard for most big sites), they are stored in the object cache instead. The database call to fetch transients returns no results, and emails are never sent.
With two fundamental aspects not working, this doesn’t seem like a well-maintained plugin.
- The topic ‘Emails not sent – at least two bugs in plugin’ is closed to new replies.