WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/10/2010 08:55:17 AM (11 years ago)
Author:
scribu
Message:

Remove unnecessary comments. See #15416

File:
1 edited

Legend:

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

    r16855 r16856  
    2222unset( $_redirect );
    2323
    24 // Handle bulk actions
    2524$doaction = $wp_list_table->current_action();
    2625
    2726if ( $doaction ) {
    2827    check_admin_referer('bulk-posts');
     28
    2929    $sendback = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), wp_get_referer() );
    30    
    31     // Fix the problem with wrong page number. This happens when the user use the javascript
    32     // pagination feature to navigate to a certain page, then does some bulk actions there,
    33     // he will be redirected back to te original page number instead of the navigated one.
    3430    $sendback = add_query_arg( 'paged', $pagenum, $sendback );
    35 
    3631    if ( strpos($sendback, 'post.php') !== false )
    3732        $sendback = admin_url($post_new_file);
     
    134129$wp_list_table->prepare_items();
    135130
    136 // redirect to the last page if the page number is larger than the total number of pages
    137 // this can happen when all the items in the last page are deleted, for example
    138131$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
    139132if ( $pagenum > $total_pages && $total_pages > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.