diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index d09ac8d405..2c9e4a8ec8 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; diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 9eb9f0bc51..bed697c797 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -233,7 +233,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 ) {