Fix warning when trashing a post from the write screen, fixes #11131

git-svn-id: http://svn.automattic.com/wordpress/trunk@12182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-11-13 03:47:10 +00:00
parent 1388798565
commit 2258189f14
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();