Make WordPress Core

Changeset 795


Ignore:
Timestamp:
01/26/2004 01:59:09 AM (22 years ago)
Author:
emc3
Message:

Fix hide_empty for list_cats()

File:
1 edited

Legend:

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

    r789 r795  
    15441544            $link .= ' '.$category->lastday.'/'.$category->lastmonth;
    15451545        }
    1546         if ($list) {
    1547             echo "\t<li>$link</li>\n";
    1548         } else {
    1549             echo "\t$link<br />\n";
     1546        if (!$hide_empty || $category_posts[$category->cat_ID]) {
     1547            if ($list) {
     1548                echo "\t<li>$link</li>\n";
     1549            } else {
     1550                echo "\t$link<br />\n";
     1551            }
    15501552        }
    15511553    }
Note: See TracChangeset for help on using the changeset viewer.