Skip to content

Commit 4bf4ab5

Browse files
committed
Fix warning when trashing a post from the write screen, fixes WordPress#11131
git-svn-id: https://develop.svn.wordpress.org/trunk@12182 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8a667fd commit 4bf4ab5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wp-admin/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function redirect_page($page_ID) {
160160
if ( strpos($sendback, 'page.php') !== false || strpos($sendback, 'page-new.php') !== false )
161161
$sendback = admin_url('edit-pages.php?trashed=1&ids='.$post_id);
162162
else
163-
$sendback = add_query_arg( array('trashed' => 1, ids => $post_id), $sendback );
163+
$sendback = add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback );
164164

165165
wp_redirect($sendback);
166166
exit();

wp-admin/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function redirect_post($post_ID = '') {
200200
if ( strpos($sendback, 'post.php') !== false || strpos($sendback, 'post-new.php') !== false )
201201
$sendback = admin_url('edit.php?trashed=1&ids='.$post_id);
202202
else
203-
$sendback = add_query_arg( array('trashed' => 1, ids => $post_id), $sendback );
203+
$sendback = add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback );
204204

205205
wp_redirect($sendback);
206206
exit();

0 commit comments

Comments
 (0)