Make WordPress Core

Changeset 12182


Ignore:
Timestamp:
11/13/2009 03:47:10 AM (15 years ago)
Author:
azaozz
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page.php

    r12121 r12182  
    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);
  • trunk/wp-admin/post.php

    r12121 r12182  
    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);
Note: See TracChangeset for help on using the changeset viewer.