Make WordPress Core


Ignore:
Timestamp:
09/05/2008 11:54:49 PM (16 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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() );
Note: See TracChangeset for help on using the changeset viewer.