From 62298aa7c76e6be1851199f6d4c9ba9ae4b4f9bc Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 14 Mar 2008 07:07:46 +0000 Subject: [PATCH] Remove drafts from Write page. git-svn-id: http://svn.automattic.com/wordpress/trunk@7282 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 3 -- wp-admin/post-new.php | 49 --------------------------------- 2 files changed, 52 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index a40b6af9b4..83ff542866 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -19,9 +19,6 @@ $messages[3] = __('Custom field deleted.');

'; - - foreach ( $nag_posts as $nag ) { - if ( ${$nag[0]} ) { - $draft_div .= '

' . wp_specialchars($nag[1]) . ' '; - $i = 0; - foreach ( ${$nag[0]} as $post ) { - $i++; - if ( $i > $nag_posts_limit ) - break; - $draft_div .= ''; - $draft_div .= ( '' == the_title('', '', FALSE) ) ? sprintf( __('Post #%s'), $post->ID ) : get_the_title(); - $draft_div .= ''; - if ( $i < min($nag[3], $nag_posts_limit) ) - $draft_div .= ', '; - } - if ( $nag[3] > $nag_posts_limit ) - $draft_div .= sprintf(__(', and %d more'), $nag[2], $nag[3] - $nag_posts_limit); - $draft_div .= '.

'; - } - } - $draft_div .= "\n"; -} // Show post form. $post = get_default_post_to_edit();