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:
parent
1388798565
commit
2258189f14
|
@ -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