Fix warning when trashing a post from the write screen, fixes #11131
git-svn-id: https://develop.svn.wordpress.org/trunk@12182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8a667fd4a9
commit
4bf4ab5114
@ -160,7 +160,7 @@ case 'trash':
|
||||
if ( strpos($sendback, 'page.php') !== false || strpos($sendback, 'page-new.php') !== false )
|
||||
$sendback = admin_url('edit-pages.php?trashed=1&ids='.$post_id);
|
||||
else
|
||||
$sendback = add_query_arg( array('trashed' => 1, ids => $post_id), $sendback );
|
||||
$sendback = add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback );
|
||||
|
||||
wp_redirect($sendback);
|
||||
exit();
|
||||
|
@ -200,7 +200,7 @@ case 'trash':
|
||||
if ( strpos($sendback, 'post.php') !== false || strpos($sendback, 'post-new.php') !== false )
|
||||
$sendback = admin_url('edit.php?trashed=1&ids='.$post_id);
|
||||
else
|
||||
$sendback = add_query_arg( array('trashed' => 1, ids => $post_id), $sendback );
|
||||
$sendback = add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback );
|
||||
|
||||
wp_redirect($sendback);
|
||||
exit();
|
||||
|
Loading…
Reference in New Issue
Block a user