= $max ? $max : (int) $paged; } return is_int( $paged ) ? min( max( 1, $paged ), $max ) : 1; } }