includes/staticwp.class.php
public function addComment($id, $status)
    {
        if ($status == 0) {
            return;
        }

        $comment = get_comment($id);
        $this->updateHtml($comment->comment_post_ID);
        wp_safe_redirect(get_permalink($comment->comment_post_ID));
        exit();
    }
public function addComment($id, $status)
    {
        if ($status == 0) {
            return;
        }

        $comment = get_comment($id);
        $this->updateHtml($comment->comment_post_ID);
        wp_safe_redirect(get_permalink($comment->comment_post_ID));
        exit();
    }
public function addComment ( $ id , $ status ) { if ( $ status == 0 ) { return ; } $ comment = get_comment ( $ id ) ; $ this -> updateHtml ( $ comment -> comment_post_ID ) ; wp_safe_redirect ( get_permalink ( $ comment -> comment_post_ID ) ) ; exit ( ) ; }
Updates static HTML after an approved comment is added.

@param int $id
@param int @status

@return void
Updates static HTML after an approved comment is added .