mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Correct message when saving a draft. Fixes #7693 props johnhennmacc.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b156134c4
commit
249fee1d34
@ -41,8 +41,12 @@ function redirect_post($post_ID = '') {
|
||||
'_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ),
|
||||
'message' => 1
|
||||
), get_edit_post_link( $post_ID, 'url' ) );
|
||||
else
|
||||
$location = add_query_arg( 'message', 6, 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
|
||||
$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() );
|
||||
$location = explode('#', $location);
|
||||
|
Loading…
Reference in New Issue
Block a user