Make WordPress Core

Ticket #36435: 36435.diff

File 36435.diff, 615 bytes (added by lukecavanagh, 9 years ago)

Patch for class-wp-comments-list-table.php

  • class-wp-comments-list-table.php

     
    106106                $page = $this->get_pagenum();
    107107
    108108                if ( isset( $_REQUEST['start'] ) ) {
    109                         $start = $_REQUEST['start'];
     109                        $start = (int) $_REQUEST['start'];
    110110                } else {
    111111                        $start = ( $page - 1 ) * $comments_per_page;
    112112                }
    113113
    114114                if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) {
    115                         $start += $_REQUEST['offset'];
     115                        $start += ( int) $_REQUEST['offset'];
    116116                }
    117117
    118118                $status_map = array(