Changeset 8830

Show
Ignore:
Timestamp:
09/05/08 23:54:49 (3 months ago)
Author:
westi
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/post.php

    r8797 r8830  
    4242                'message' => 1 
    4343            ), get_edit_post_link( $post_ID, 'url' ) ); 
    44         else 
    45             $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); 
     44        else { 
     45            if ( isset( $_POST['publish'] ) ) 
     46                $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); 
     47            else 
     48                $location = add_query_arg( 'message', 7, get_edit_post_link( $post_ID, 'url' ) ); 
     49        } 
    4650    } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { 
    4751        $location = add_query_arg( 'message', 2, wp_get_referer() );