diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 8e24d45492..e1bb35b427 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -901,7 +901,7 @@ function user_row( $user_object, $style = '' ) { function _wp_get_comment_list( $s = false, $start, $num ) { global $wpdb; - $start = (int) $start; + $start = abs( (int) $start ); $num = (int) $num; if ( $s ) { diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 85b2a6eba3..ea718b979d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -76,7 +76,7 @@ if ( !empty( $_POST['delete_comments'] ) ) : endif; if ( isset( $_GET['apage'] ) ) - $page = (int) $_GET['apage']; + $page = abs( (int) $_GET['apage'] ); else $page = 1;