diff --git a/wp-admin/b2edit.form.php b/wp-admin/b2edit.form.php index bda3eb1ed5..50e6999d9d 100644 --- a/wp-admin/b2edit.form.php +++ b/wp-admin/b2edit.form.php @@ -1,6 +1,10 @@
- - + +
| + + |
+ + + |
+ + + |
+
+ + |
+
Since you're a newcomer, you'll have to wait for an admin to raise your level to 1, @@ -164,6 +172,10 @@ switch($action) { $excerpt = balanceTags($HTTP_POST_VARS["excerpt"]); $excerpt = format_to_post($excerpt); $post_title = addslashes($HTTP_POST_VARS["post_title"]); + $post_status = $HTTP_POST_VARS['post_status']; + $comment_status = $HTTP_POST_VARS['comment_status']; + $ping_status = $HTTP_POST_VARS['ping_status']; + $post_password = addslashes($HTTP_POST_VARS['post_password']); if (($user_level > 4) && (!empty($HTTP_POST_VARS["edit_date"]))) { $aa = $HTTP_POST_VARS["aa"]; @@ -178,10 +190,10 @@ switch($action) { $ss = ($ss > 59) ? $ss - 60 : $ss; $datemodif = ", post_date=\"$aa-$mm-$jj $hh:$mn:$ss\""; } else { - $datemodif = ""; + $datemodif = ''; } - $query = "UPDATE $tableposts SET post_content=\"$content\", post_excerpt=\"$excerpt\", post_title=\"$post_title\", post_category=\"$post_category\"".$datemodif." WHERE ID=$post_ID"; + $query = "UPDATE $tableposts SET post_content='$content', post_excerpt='$excerpt', post_title='$post_title', post_category='$post_category'".$datemodif.", post_status='$post_status', comment_status='$comment_status', ping_status='$ping_status', post_password='$post_password' WHERE ID = $post_ID"; $result = $wpdb->query($query); if (isset($sleep_after_edit) && $sleep_after_edit > 0) { @@ -282,7 +294,6 @@ switch($action) { $newcomment_author = addslashes($newcomment_author); $newcomment_author_email = addslashes($newcomment_author_email); $newcomment_author_url = addslashes($newcomment_author_url); - $post_autobr = $HTTP_POST_VARS["post_autobr"]; if (($user_level > 4) && (!empty($HTTP_POST_VARS["edit_date"]))) { $aa = $HTTP_POST_VARS["aa"]; @@ -317,7 +328,24 @@ switch($action) { if ($user_level > 0) { if ((!$withcomments) && (!$c)) { - $action="post"; + $action = 'post'; + get_currentuserinfo(); + $drafts = $wpdb->get_results("SELECT ID, post_title FROM $tableposts WHERE post_status = 'draft' AND post_author = $user_ID"); + if ($drafts) { + ?> +
Your Drafts: + ID' title='Edit this draft'>$draft->post_title"; + ++$i; + } + ?>.
+Since you're a newcomer, you'll have to wait for an admin to raise your level to 1, in order to be authorized to post.
You can also e-mail the admin to ask for a promotion.
When you're promoted, just reload this page and you'll be able to blog. :)
- [
+ [
$authordata[13]) or ($user_login == $authordata[1])) {
echo " - Edit";
echo " - post_title."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete ";
}
+ if ('private' == $post->post_status) echo ' - Private';
?>
]