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:
parent
0c1b4f93ca
commit
f526180278
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue