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/page.php

    r9998 r10094  
    4343                        ), get_edit_post_link( $page_ID, 'url' ) );
    4444                else {
    45                         if ( isset( $_POST['publish'] ) )
    46                                 $location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) );
    47                         else
     45                        if ( isset( $_POST['publish'] ) ) {
     46                                if ( 'pending' == get_post_status( $page_ID ) )
     47                                        $location = add_query_arg( 'message', 6, get_edit_post_link( $page_ID, 'url' ) );
     48                                else
     49                                        $location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) );
     50                        } else {
    4851                                $location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) );
     52                        }
    4953                }
    5054        } elseif ( isset($_POST['addmeta']) ) {
Note: See TracChangeset for help on using the changeset viewer.