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
This commit is contained in:
matt 2007-08-01 19:41:44 +00:00
parent 0c1b4f93ca
commit f526180278
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 ) {