Make WordPress Core

Changeset 1183


Ignore:
Timestamp:
04/26/2004 07:12:33 PM (21 years ago)
Author:
saxmatt
Message:

Bug that was causing duplicate queries.

File:
1 edited

Legend:

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

    r1109 r1183  
    273273        $categories = $wpdb->get_results($query);
    274274    }
    275     if (intval($hide_empty) == 1 || intval($optioncount) == 1) {
     275    if (intval($hide_empty) == 1 && intval($optioncount) == 1) {
    276276        $cat_counts = $wpdb->get_results("    SELECT cat_ID,
    277277        COUNT($tablepost2cat.post_id) AS cat_count
Note: See TracChangeset for help on using the changeset viewer.