mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -42,10 +42,14 @@ function redirect_page($page_ID) {
|
||||
'message' => 1
|
||||
), get_edit_post_link( $page_ID, 'url' ) );
|
||||
else {
|
||||
if ( isset( $_POST['publish'] ) )
|
||||
$location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) );
|
||||
else
|
||||
if ( isset( $_POST['publish'] ) ) {
|
||||
if ( 'pending' == get_post_status( $page_ID ) )
|
||||
$location = add_query_arg( 'message', 6, get_edit_post_link( $page_ID, 'url' ) );
|
||||
else
|
||||
$location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) );
|
||||
} else {
|
||||
$location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) );
|
||||
}
|
||||
}
|
||||
} elseif ( isset($_POST['addmeta']) ) {
|
||||
$location = add_query_arg( 'message', 2, wp_get_referer() );
|
||||
|
||||
Reference in New Issue
Block a user