/**
  * Get current post updates count.
  *
  * @return int
  */
 public function current_post_updates_count()
 {
     global $post;
     $lp_post = new LivePress_Post($post->post_content, $post->ID);
     return $lp_post->get_updates_count();
 }
 /**
  * Retrieves the comment template with and without $commen_id
  *
  * @access private
  *
  * @param WP_Comment $comment The comment to be parsed.
  * @return  array   'new' => has the comment template with the $comment_id
  *                  'old' => comment template without it
  */
 private function get_comment_list_templated($local_comment)
 {
     // $comments - Fake comment list generation on old comments template
     global $post, $comments;
     $comments = LivePress_Post::all_approved_comments($local_comment->comment_post_ID);
     // When comment by XMLRPC the $post is empty, so get from the comment.
     if (!isset($post)) {
         $post = get_post($local_comment->comment_post_ID);
     }
     if ($local_comment->comment_approved == '0') {
         array_push($comments, $local_comment);
     }
     $comment_full_out = $this->get_comments_list_template($comments, $post);
     // remove parsed comment from comments table
     for ($i = 0; $i < count($comments); $i++) {
         if ($comments[$i]->comment_ID == $local_comment->comment_ID) {
             unset($comments[$i]);
         }
     }
     $comment_partial_out = $this->get_comments_list_template($comments, $post);
     return array('old' => $comment_partial_out, 'new' => $comment_full_out);
 }