Isolated functions.php.
Converting $limit and $offset to int.