Make WordPress Core


Ignore:
Timestamp:
05/13/2005 09:13:13 PM (21 years ago)
Author:
matt
Message:

http://mosquito.wordpress.org/view.php?id=1331 - Hat tip: Mike the Magnificant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r2551 r2603  
    289289       
    290290        if ( $optiondates ) {
    291                 $cat_dates = $wpdb->get_results("       SELECT cat_ID,
     291                $cat_dates = $wpdb->get_results("       SELECT category_id,
    292292                UNIX_TIMESTAMP( MAX(post_date) ) AS ts
    293293                FROM $wpdb->posts, $wpdb->post2cat
     
    295295                GROUP BY category_id");
    296296                foreach ($cat_dates as $cat_date) {
    297                         $category_timestamp["$cat_date->cat_ID"] = $cat_date->ts;
     297                        $category_timestamp["$cat_date->category_id"] = $cat_date->ts;
    298298                }
    299299        }
Note: See TracChangeset for help on using the changeset viewer.