Changeset 769

Show
Ignore:
Timestamp:
01/12/04 22:53:11 (5 years ago)
Author:
emc3
Message:

Fix harcoded table names

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/template-functions.php

    r760 r769  
    15071507    if (intval($hide_empty) == 1) { 
    15081508        $cat_counts = $wpdb->get_results("  SELECT cat_ID, 
    1509         COUNT(wp_post2cat.post_id) AS cat_count 
    1510         FROM wp_categories LEFT JOIN wp_post2cat ON (cat_ID = category_id) 
    1511         LEFT JOIN wp_posts ON (ID = post_id) 
     1509        COUNT($tablepost2cat.post_id) AS cat_count 
     1510        FROM $tablecategories LEFT JOIN $tablepost2cat ON (cat_ID = category_id) 
     1511        LEFT JOIN $tableposts ON (ID = post_id) 
    15121512        GROUP BY category_id"); 
    15131513        foreach ($cat_counts as $cat_count) {