Make WordPress Core

Changeset 1280


Ignore:
Timestamp:
05/14/2004 07:44:23 PM (20 years ago)
Author:
emc3
Message:

Only used published posts.

File:
1 edited

Legend:

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

    r1278 r1280  
    300300    INNER JOIN $tablepost2cat ON (cat_ID = category_id)
    301301        INNER JOIN $tableposts ON (ID = post_id)
    302     WHERE 1 = 1 $exclusions
     302    WHERE post_status = 'publish' $exclusions
    303303        GROUP BY category_id");
    304304        foreach ($cat_counts as $cat_count) {
     
    313313    LEFT JOIN $tablepost2cat ON (cat_ID = category_id)
    314314        LEFT JOIN $tableposts ON (ID = post_id)
    315     WHERE 1 = 1 $exclusions
     315    WHERE post_status = 'publish' $exclusions
    316316        GROUP BY category_id");
    317317        foreach ($cat_dates as $cat_date) {
Note: See TracChangeset for help on using the changeset viewer.