Opened 13 years ago
Closed 12 years ago
#18392 closed defect (bug) (duplicate)
When checking to see if terms are in the cache, if statement should check to see if exactly false, not empty
Reported by: | wpdavis | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
In two instances, core checks to see if terms are in the cache by seeing if $terms is empty. Instead, use ===, as checking if is empty can return a false positive and there are no terms for the object.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Sounds like a duplicate of #16505, actually. And probably storing array() versus false.