Added new status fields.
git-svn-id: https://develop.svn.wordpress.org/trunk@140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e55a53085a
commit
918fbbb95f
|
@ -501,7 +501,11 @@ function get_postdata($postid) {
|
||||||
'Content' => $post->post_content,
|
'Content' => $post->post_content,
|
||||||
'Excerpt' => $post->post_excerpt,
|
'Excerpt' => $post->post_excerpt,
|
||||||
'Title' => $post->post_title,
|
'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);
|
return($postdata);
|
||||||
}
|
}
|
||||||
|
@ -516,9 +520,10 @@ function get_postdata2($postid=0) { // less flexible, but saves mysql queries
|
||||||
'Excerpt' => $post->post_excerpt,
|
'Excerpt' => $post->post_excerpt,
|
||||||
'Title' => $post->post_title,
|
'Title' => $post->post_title,
|
||||||
'Category' => $post->post_category,
|
'Category' => $post->post_category,
|
||||||
# 'Notify' => $post->post_notifycomments,
|
'post_status' => $post->post_status,
|
||||||
# 'Clickable' => $post->post_make_clickable,
|
'comment_status' => $post->comment_status,
|
||||||
'Karma' => $post->post_karma // this isn't used yet
|
'ping_status' => $post->ping_status,
|
||||||
|
'post_password' => $post->post_password
|
||||||
);
|
);
|
||||||
return($postdata);
|
return($postdata);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue