Make WordPress Core

Changeset 16856


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

Remove unnecessary comments. See #15416

Location:
trunk/wp-admin
Files:
2 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 ) {
  • 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.