diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 24e2d1d965..188e3875af 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -65,7 +65,10 @@ window.onload = focusit;
' . sprintf(__('TrackBack a URI: (Separate multiple URIs with spaces.)'), 'http://wordpress.org/docs/reference/post/#trackback') . - '
TrackBack a URI: (Separate multiple URIs with spaces.)'), 'http://wordpress.org/docs/reference/post/#trackback') ?> +
- + + + - + +'; } ?>
diff --git a/wp-admin/post.php b/wp-admin/post.php index 98394ac0ae..54c214a399 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -66,6 +66,9 @@ case 'post': $post_name = $_POST['post_name']; if (empty($post_status)) $post_status = 'draft'; + // Double-check + if ( 'publish' == $post_status && 1 == $user_level && 2 != get_option('new_users_can_blog') ) + $post_status = 'draft'; $comment_status = $_POST['comment_status']; if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); $ping_status = $_POST['ping_status']; @@ -322,6 +325,9 @@ case 'editpost': $trackback = preg_replace('|\s+|', '\n', $trackback); if (isset($_POST['publish'])) $post_status = 'publish'; + // Double-check + if ( 'publish' == $post_status && 1 == $user_level && 2 != get_option('new_users_can_blog') ) + $post_status = 'draft'; if (($user_level > 4) && (!empty($_POST['edit_date']))) { $aa = $_POST['aa'];