From 918fbbb95fa29e3dfe67ce3db21f67a48ae474e8 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 1 Jun 2003 13:26:54 +0000 Subject: [PATCH] Added new status fields. git-svn-id: https://develop.svn.wordpress.org/trunk@140 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 972a3908ab..72e05cf08d 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -501,7 +501,11 @@ function get_postdata($postid) { 'Content' => $post->post_content, 'Excerpt' => $post->post_excerpt, 'Title' => $post->post_title, - 'Category' => $post->post_category, + 'Category' => $post->post_category, + 'post_status' => $post->post_status, + 'comment_status' => $post->comment_status, + 'ping_status' => $post->ping_status, + 'post_password' => $post->post_password ); return($postdata); } @@ -516,9 +520,10 @@ function get_postdata2($postid=0) { // less flexible, but saves mysql queries 'Excerpt' => $post->post_excerpt, 'Title' => $post->post_title, 'Category' => $post->post_category, -# 'Notify' => $post->post_notifycomments, -# 'Clickable' => $post->post_make_clickable, - 'Karma' => $post->post_karma // this isn't used yet + 'post_status' => $post->post_status, + 'comment_status' => $post->comment_status, + 'ping_status' => $post->ping_status, + 'post_password' => $post->post_password ); return($postdata); }