From f52618027882684bff690b9428e4d3077075a900 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 1 Aug 2007 19:41:44 +0000 Subject: [PATCH] Absolute numbers where we will never allow negatives, fixes #4692 git-svn-id: http://svn.automattic.com/wordpress/trunk@5836 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 2 +- wp-admin/includes/template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) {