Change in wp-includes/classes.php : line : if (empty($page)) for line : if (empty($page) || $page <0 || !is_integer($page)) it's easy.