[wp-trac] [WordPress Trac] #15407: get_the_category code duplication

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 16 00:07:00 UTC 2010


#15407: get_the_category code duplication
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  3.1     
Component:  Taxonomy      |      Version:  3.1     
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by nacin):

  * keywords:  has-patch, revert => has-patch
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 After an IRC discussion with Viper007Bond, the issue here is that
 get_the_terms() may return false. I was trying to prevent issues there,
 but it may be cast awkwardly into an array(0=>null) which then causes some
 problems.

 Shuffling things around here a bit.

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


More information about the wp-trac mailing list