How does WordPress determine if a paged query var is too high?
A query either returns posts or it doesn’t. Whether it’s a non-existent page number, a non-existent category name, a non-existent post name, etc., it’s all the same. The rewrite rules is matched, which populates the query vars, which forms the query. The query is sent to the database, and the database returns some amount of … Read more