WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2010 06:53:33 AM (11 years ago)
Author:
ryan
Message:

Update trash and right now links for pages. fixes #11958

File:
1 edited

Legend:

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

    r12728 r12783  
    6666        $doaction = ($_GET['action'] != -1) ? $_GET['action'] : $_GET['action2'];
    6767    } else {
    68         wp_redirect( admin_url('edit.php') );
     68        wp_redirect( admin_url("edit.php?post_type=$post_type") );
    6969    }
    7070
     
    128128
    129129    if ( isset($_GET['action']) )
    130         $sendback = remove_query_arg( array('action', 'action2', 'cat', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status',  'post', 'bulk_edit', 'post_view', 'post_type'), $sendback );
     130        $sendback = remove_query_arg( array('action', 'action2', 'cat', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status',  'post', 'bulk_edit', 'post_view'), $sendback );
    131131
    132132    wp_redirect($sendback);
     
    199199    printf( _n( 'Item moved to the trash.', '%s items moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) );
    200200    $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
    201     echo ' <a href="' . esc_url( wp_nonce_url( "edit.php?doaction=undo&action=untrash&ids=$ids", "bulk-posts" ) ) . '">' . __('Undo') . '</a><br />';
     201    echo ' <a href="' . esc_url( wp_nonce_url( "edit.php?post_type=$post_type&doaction=undo&action=untrash&ids=$ids", "bulk-posts" ) ) . '">' . __('Undo') . '</a><br />';
    202202    unset($_GET['trashed']);
    203203}
Note: See TracChangeset for help on using the changeset viewer.