From efd65680bd27e0143f1b754a99a9ba167144f413 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 31 Dec 2003 22:21:50 +0000 Subject: [PATCH] Now with default statuses. Drafts on edit page. Fixed bookmarklets, tested in IE and Moz. Slightly tweaked CSS. git-svn-id: http://svn.automattic.com/wordpress/trunk@670 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form.php | 4 ---- wp-admin/edit.php | 24 +++++++++++++++++++++++- wp-admin/link-add.php | 3 ++- wp-admin/post.php | 8 +++++++- wp-admin/wp-admin.css | 2 +- 5 files changed, 33 insertions(+), 8 deletions(-) diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php index 1463e7faf4..c7d6d7c5fd 100644 --- a/wp-admin/edit-form.php +++ b/wp-admin/edit-form.php @@ -71,10 +71,6 @@ window.onload = focusit; Categories
-
- Post Password -
-

diff --git a/wp-admin/edit.php b/wp-admin/edit.php index c3df335f7a..3a1f2c6c67 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -40,7 +40,29 @@ ob_start();
  • Latest Comments
  • Comments Awaiting Moderation
  • - +get_results("SELECT ID, post_title FROM $tableposts WHERE post_status = 'draft' AND post_author = $user_ID"); +if ($drafts) { + ?> +
    +

    Your Drafts: + post_title = stripslashes($draft->post_title); + if ($draft->post_title == '') + $draft->post_title = 'Post #'.$draft->ID; + echo "$draft->post_title"; + ++$i; + } + ?>.

    +
    +
    diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php index 30f3db91ec..4d5e68cd71 100644 --- a/wp-admin/link-add.php +++ b/wp-admin/link-add.php @@ -54,7 +54,8 @@ for ($i=0; $i
      diff --git a/wp-admin/post.php b/wp-admin/post.php index 0195f3f2be..becd6b98d0 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -58,9 +58,12 @@ switch($action) { } } $post_status = $HTTP_POST_VARS['post_status']; + if (empty($post_status)) $post_status = get_settings('default_post_status'); $comment_status = $HTTP_POST_VARS['comment_status']; + if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); $ping_status = $HTTP_POST_VARS['ping_status']; - $post_password = addslashes($HTTP_POST_VARS['post_password']); + if (empty($ping_status)) $ping_status = get_settings('default_ping_status'); + $post_password = addslashes(stripslashes($HTTP_POST_VARS['post_password'])); $post_name = sanitize_title($post_title); $trackback = $HTTP_POST_VARS['trackback_url']; // Format trackbacks @@ -262,8 +265,11 @@ switch($action) { } $post_status = $HTTP_POST_VARS['post_status']; $prev_status = $HTTP_POST_VARS['prev_status']; + $post_status = $HTTP_POST_VARS['post_status']; $comment_status = $HTTP_POST_VARS['comment_status']; + if (empty($comment_status)) $post_status = get_settings('default_comment_status'); $ping_status = $HTTP_POST_VARS['ping_status']; + if (empty($ping_status)) $post_status = get_settings('default_ping_status'); $post_password = addslashes($HTTP_POST_VARS['post_password']); $post_name = sanitize_title($post_title); $trackback = $HTTP_POST_VARS['trackback_url']; diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 66353e10e6..0f5c41c1f6 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -207,7 +207,7 @@ textarea, input, select { #categorydiv { line-height: 130%; - margin-right: 5px; + margin-right: 15px; position: absolute; right: 5%; width: 9em;