[wp-trac] [WordPress Trac] #18392: When checking to see if terms are in the cache, if statement should check to see if exactly false, not empty

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 13 06:13:16 UTC 2011


#18392: When checking to see if terms are in the cache, if statement should check
to see if exactly false, not empty
--------------------------+-----------------------------
 Reporter:  wpdavis       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18392>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list