mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +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:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user