Absolute numbers where we will never allow negatives, fixes #4692
git-svn-id: https://develop.svn.wordpress.org/trunk@5836 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c08fda3c20
commit
1d1effa962
@ -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
Block a user