Correct message when saving a draft. Fixes #7693 props johnhennmacc.

git-svn-id: https://develop.svn.wordpress.org/trunk@8830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-09-05 23:54:49 +00:00
parent 4df89a2469
commit 6b3d49a607
1 changed files with 6 additions and 2 deletions

View File

@ -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);