Opened 17 months ago
Closed 17 months ago
#19773 closed defect (bug) (fixed)
query.php paging block clarity
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Query | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.

In [19724]: