[wp-trac] Re: [WordPress Trac] #5110: in_category function does no sanity checking

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 9 17:51:19 GMT 2007


#5110: in_category function does no sanity checking
-----------------------------------+----------------------------------------
 Reporter:  tomsing1               |        Owner:  markjaquith
     Type:  defect                 |       Status:  assigned   
 Priority:  normal                 |    Milestone:  2.4        
Component:  Template               |      Version:  2.3        
 Severity:  normal                 |   Resolution:             
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Changes (by markjaquith):

  * keywords:  => has-patch 2nd-opinion
  * owner:  anonymous => markjaquith
  * status:  new => assigned
  * milestone:  2.3.1 => 2.4

Comment:

 Updated patch casts {{{$category}}} to an absolute integer, and then
 checks if it is zero.  Should catch more errors, such as {{{in_category
 ('category-name')}}}

 Patches go into trunk first, and then are considered for backporting to
 2.3.1

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5110#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list