Opened 11 years ago
Closed 11 years ago
#19773 closed defect (bug) (fixed)
query.php paging block clarity
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Query | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
A few simple changes to the // Paging
block in wp-includes/query.php
$page
is being checked withempty()
, but is already passed throughabsint()
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]: