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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 5 05:35:53 UTC 2010


#5028: wp_dropdown_categories and wp_list_categories with show_last_update=1
displays wrong date
--------------------------+-------------------------------------------------
 Reporter:  MichaelH      |       Owner:  anonymous     
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  Template      |     Version:  2.9.1         
 Severity:  normal        |    Keywords:                
--------------------------+-------------------------------------------------
Changes (by jdub):

 * cc: jdub@… (added)
  * version:  2.3 => 2.9.1


Comment:

 I whipped up a cheesy little plugin to add the 'last_update_timestamp'
 column back in, albeit on the term_taxonomy table -- it used to exist on
 ye olde categories table. The field is updated when a post is published
 into that term (so this will work for any kind of term, which is a nice
 bonus).

 Once those are in place, show_last_update=1 works (because it now has a
 date to show!), as per line 1370 in wp-includes/classes.php.

 (My cheesy plugin also provides helper functions to return update-sorted
 terms because the core doesn't -- yet!)

 Not sure if this is super-appropriate for core, but at least describes how
 to fix the problem, and notes some more general benefits of resolving the
 bug in this manner (generic "last update timestamp of any term" support).

 Thanks. :-)

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


More information about the wp-trac mailing list