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

git-svn-id: https://develop.svn.wordpress.org/trunk@10094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-12-07 03:39:00 +00:00
parent 161d70aeb9
commit cc1e3f416b
4 changed files with 16 additions and 6 deletions

View File

@@ -45,10 +45,14 @@ function redirect_post($post_ID = '') {
'message' => 1
), 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
if ( isset( $_POST['publish'] ) ) {
if ( 'pending' == get_post_status( $post_ID ) )
$location = add_query_arg( 'message', 8, get_edit_post_link( $post_ID, 'url' ) );
else
$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() );