[wp-trac] [WordPress Trac] #14061: Bugs in edit-tags and edit columns regarding post_type vars

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 24 05:46:14 UTC 2010


#14061: Bugs in edit-tags and edit columns regarding post_type vars
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0.1    
Component:  Taxonomy      |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by nacin):

 I've seen that, and I'd argue that `!empty()` should be an exception, as
 it's testing something, if true uses something, if false uses an
 alternative. Checking for passed variables using `isset()` or `!empty()`
 is very common. Does anyone find the second example above less confusing
 than the first?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14061#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list