Make WordPress Core


Ignore:
Timestamp:
07/26/2008 03:54:06 AM (16 years ago)
Author:
azaozz
Message:

Stay on the same page after moderating comments. Fixes #7412 for 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/edit-comments.php

    r7883 r8460  
    3131    endforeach;
    3232    $redirect_to = basename( __FILE__ ) . '?deleted=' . $comments_deleted . '&approved=' . $comments_approved . '&spam=' . $comments_spammed . '&unapproved=' . $comments_unapproved;
     33    if ( isset($_REQUEST['apage']) )
     34        $redirect_to = add_query_arg( 'apage', absint($_REQUEST['apage']), $redirect_to );
    3335    if ( !empty($_REQUEST['mode']) )
    3436        $redirect_to = add_query_arg('mode', $_REQUEST['mode'], $redirect_to);
     
    176178<?php do_action('manage_comments_nav', $comment_status); ?>
    177179<?php wp_nonce_field('bulk-comments'); ?>
     180<?php if ( isset($_GET['apage']) ) { ?>
     181    <input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" />
     182<?php } ?>
    178183</div>
    179184
Note: See TracChangeset for help on using the changeset viewer.