Update class-wp-json-posts.php

The "number" argument returns an error but "posts_per_page" works.