more fixes for post_status

git-svn-id: http://svn.automattic.com/wordpress/trunk@1051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-04-04 15:36:20 +00:00
parent 3fd1adb07f
commit ce9a20e9e7

View File

@ -297,11 +297,10 @@ switch($action) {
$latlonaddition = " post_lat=null, post_lon=null, "; $latlonaddition = " post_lat=null, post_lon=null, ";
} }
} }
$post_status = $HTTP_POST_VARS['post_status'];
$prev_status = $HTTP_POST_VARS['prev_status']; $prev_status = $HTTP_POST_VARS['prev_status'];
$post_status = $HTTP_POST_VARS['post_status']; $post_status = $HTTP_POST_VARS['post_status'];
$comment_status = $HTTP_POST_VARS['comment_status']; $comment_status = $HTTP_POST_VARS['comment_status'];
if (empty($comment_status)) $post_status = get_settings('default_comment_status'); if (empty($comment_status)) $comment_status = get_settings('default_comment_status');
$ping_status = $HTTP_POST_VARS['ping_status']; $ping_status = $HTTP_POST_VARS['ping_status'];
if (empty($ping_status)) $ping_status = get_settings('default_ping_status'); if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
$post_password = addslashes($HTTP_POST_VARS['post_password']); $post_password = addslashes($HTTP_POST_VARS['post_password']);