query.php paging block clarity
|Reported by:||kawauso||Owned by:||ryan|
A few simple changes to the // Paging block in wp-includes/query.php
- $page is being checked with empty(), but is already passed through absint() which can only return an integer. Just using ! makes it a bit less confusing.
- $pgstrt = ''; is redundant as it's overwritten on the following line
- $limits = 'LIMIT ' . $pgstrt . $q['posts_per_page']; is repeated, so moved outside the if/else block for readability.
Change History (4)
Note: See TracTickets for help on using tickets.