/** * When a comment is approved notify subscribers if needed. * * @param string $new_status * @param string $old_status * @param object $comment */ public static function action_transition_comment_status($new_status, $old_status, $comment) { if (!Prompt_Core::$options->get('enable_comment_delivery')) { return; } if (defined('WP_IMPORTING') and WP_IMPORTING) { return; } if ('approved' != $new_status or $old_status == $new_status or !empty($comment->comment_type)) { return; } Prompt_Comment_Mailing::send_notifications($comment); }