From cb1aa603b49bfc45b1238252adbb4c3cb087787d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 14 Mar 2008 07:07:46 +0000 Subject: [PATCH] Remove drafts from Write page. git-svn-id: https://develop.svn.wordpress.org/trunk@7282 602fd350-edb4-49c9-b593-d223f7449a82 --- 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();