[wp-trac] Re: [WordPress Trac] #9059: category with name '0' gets ignored (was: Why is WP using empty()?)

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 16 23:12:05 GMT 2009


#9059: category with name '0' gets ignored
--------------------------+-------------------------------------------------
 Reporter:  noonoo        |       Owner:  anonymous  
     Type:  defect (bug)  |      Status:  new        
 Priority:  low           |   Milestone:  2.8        
Component:  Optimization  |     Version:  2.7        
 Severity:  minor         |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch => needs-patch


Comment:

 patch is no good. as highlighted by mist, the real issue is that such a
 category gets ignored entirely by WP, due to the fact that, well...
 empty('0') returns true.

 wontfix imo

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


More information about the wp-trac mailing list