Plugin- Subscribe2 (older version) .. edit_post hook no longer useful in 2.5?
-
hi all,
i’ve recently upgraded a very large site from an old WP install (2.1 i think?) to 2.5.1. one of the very important components of the site is a heavily modified version of Subscribe2 – and obviously its an older one.
the plugin seems to work nicely still, save one issue – its sending emails out on every post edit now, not just new posts. i suspect something has changed in how WP interprets an edit vs what S2 is looking for..
so basically this code no longer has an effect:
add_action(‘edit_post’, array(&$this, ‘edit’));
and
/**
Prevents notifications from being sent when editing posts
*/
function edit($ID = 0) {
if (0 == $ID) { return; }$this->private = TRUE;
return $ID;
}anyone else see something like this, or perhaps know what happened here with the edit_post hook?
any help would be appeciated ?? .
pete
- The topic ‘Plugin- Subscribe2 (older version) .. edit_post hook no longer useful in 2.5?’ is closed to new replies.