Make WordPress Core

Changeset 1278


Ignore:
Timestamp:
05/14/2004 04:20:38 PM (21 years ago)
Author:
michelvaldrighi
Message:

fix for the bug that made list_cats show empty categories, thanks to brux

File:
1 edited

Legend:

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

    r1249 r1278  
    298298        COUNT($tablepost2cat.post_id) AS cat_count
    299299        FROM $tablecategories
    300     LEFT JOIN $tablepost2cat ON (cat_ID = category_id)
    301         LEFT JOIN $tableposts ON (ID = post_id)
     300    INNER JOIN $tablepost2cat ON (cat_ID = category_id)
     301        INNER JOIN $tableposts ON (ID = post_id)
    302302    WHERE 1 = 1 $exclusions
    303303        GROUP BY category_id");
Note: See TracChangeset for help on using the changeset viewer.