Change History (2)

Hi @mireillesan - Thanks for the ticket, and welcome to WordPress Trac!

Pagination parameters seem like a good idea. The parameter name for the page number, based on what we use in other query classes, would be paged. We are less consistent about the "per page" parameter name - WP_Query calls it posts_per_page, while WP_User_Query calls it number. Since we already have number in WP_Comment_Query, it makes sense to use it here too.

When introducing new parameters like this, which are conceptually similar to other existing params (in this case, offset), we should have unit tests that demonstrate which one takes precedence - ie, what happens when you pass offset=21&paged=5&number=20.