Make WordPress Core


Ignore:
Timestamp:
12/07/2008 03:39:00 AM (18 years ago)
Author:
azaozz
Message:

Show "Post submitted" message when contributors submit a post for review, props mdawaffe, fixes #8519

File:
1 edited

Legend:

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

    r9998 r10094  
    4646                        ), get_edit_post_link( $post_ID, 'url' ) );
    4747                else {
    48                         if ( isset( $_POST['publish'] ) )
    49                                 $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) );
    50                         else
     48                        if ( isset( $_POST['publish'] ) ) {
     49                                if ( 'pending' == get_post_status( $post_ID ) )
     50                                        $location = add_query_arg( 'message', 8, get_edit_post_link( $post_ID, 'url' ) );
     51                                else
     52                                        $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) );
     53                        } else {
    5154                                $location = add_query_arg( 'message', 7, get_edit_post_link( $post_ID, 'url' ) );
     55                        }
    5256                }
    5357        } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) {
Note: See TracChangeset for help on using the changeset viewer.