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:
Andrew Ozz 2009-11-13 03:47:10 +00:00
parent 8a667fd4a9
commit 4bf4ab5114
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();