From 249fee1d3445dd0bca09db5b8eb85381b28e7d69 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 5 Sep 2008 23:54:49 +0000 Subject: [PATCH] Correct message when saving a draft. Fixes #7693 props johnhennmacc. git-svn-id: http://svn.automattic.com/wordpress/trunk@8830 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 208614eb35..7afe8fc8e5 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -41,8 +41,12 @@ function redirect_post($post_ID = '') { '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), 'message' => 1 ), get_edit_post_link( $post_ID, 'url' ) ); - else - $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); + else { + if ( isset( $_POST['publish'] ) ) + $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); + else + $location = add_query_arg( 'message', 7, get_edit_post_link( $post_ID, 'url' ) ); + } } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { $location = add_query_arg( 'message', 2, wp_get_referer() ); $location = explode('#', $location);