WordPress.org

Make WordPress Core

Ticket #4692: for_22.patch

File for_22.patch, 826 bytes (added by g30rg3x, 7 years ago)

For Branch 2.2

  • branches/2.2/wp-admin/admin-functions.php

     
    901901function _wp_get_comment_list( $s = false, $start, $num ) { 
    902902        global $wpdb; 
    903903 
    904         $start = (int) $start; 
     904        $start = abs( (int) $start ); 
    905905        $num = (int) $num; 
    906906 
    907907        if ( $s ) { 
  • branches/2.2/wp-admin/edit-comments.php

     
    7676endif; 
    7777 
    7878if ( isset( $_GET['apage'] ) ) 
    79         $page = (int) $_GET['apage']; 
     79        $page = abs( (int) $_GET['apage'] ); 
    8080else 
    8181        $page = 1; 
    8282