[wp-trac] Re: [WordPress Trac] #5028: wp_dropdown_categories with show_last_update=1 displays wrong date

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 18 21:06:35 GMT 2008


#5028: wp_dropdown_categories with show_last_update=1 displays wrong date
----------------------+-----------------------------------------------------
 Reporter:  MichaelH  |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  normal    |    Milestone:  2.5      
Component:  Template  |      Version:  2.3      
 Severity:  normal    |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by regulatethis):

 I've narrowed this down to this line in wp-includes/classes.php:


 {{{
 $output .= '  ' . gmdate($format,
 $category->last_update_timestamp);
 }}}

 It appears that the $categories object that is passed to the
 walk_category_dropdown_tree() function does not include
 last_update_timestamp...

 Below is sample output from my installation...

 {{{

 (
     [term_id] => 1
     [name] => Uncategorized
     [slug] => uncategorized
     [term_group] => 0
     [term_taxonomy_id] => 1
     [taxonomy] => category
     [description] =>
     [parent] => 0
     [count] => 1
     [cat_ID] => 1
     [category_count] => 1
     [category_description] =>
     [cat_name] => Uncategorized
     [category_nicename] => uncategorized
     [category_parent] => 0
 )
 }}}

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


More information about the wp-trac mailing list