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-comments.php

    r16855 r16856  
    3737
    3838    $approved = $unapproved = $spammed = $unspammed = $trashed = $untrashed = $deleted = 0;
     39
    3940    $redirect_to = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'spammed', 'unspammed', 'approved', 'unapproved', 'ids' ), wp_get_referer() );
    40 
    41     // Fix the problem with wrong page number. This happens when the user use the javascript
    42     // pagination feature to navigate to a certain page, then does some bulk actions there,
    43     // he will be redirected back to te original page number instead of the navigated one.
    4441    $redirect_to = add_query_arg( 'paged', $pagenum, $redirect_to );
    4542
     
    106103$wp_list_table->prepare_items();
    107104
    108 // redirect to the last page if the page number is larger than the total number of pages
    109 // this can happen when all the items in the last page are deleted, for example
    110105$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
    111106if ( $pagenum > $total_pages && $total_pages > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.