[wp-testers] $category->category_count > not up to date !

Ryan Boren ryan at boren.nu
Tue Nov 15 15:40:17 GMT 2005


On Tue, 2005-11-15 at 18:23 +0800, Kishore Balakrishnan wrote:
> Greetings,
> 
>   Am using the latest svn
> 
>   I created ticket http://trac.wordpress.org/ticket/1238 since some of
> the recent categories are not displayed in the sidebar 
> 
>   I have been debugging "wp-includes/template-functions-category.php"
> 
>   In function list_cats - I added some temp text as follows:
> ..
>     foreach ( $categories as $category ) {
> 
> $kb001 .= ' '; 
> $kb001 .= $category->cat_ID;
> 
> $kb001 .= '.';
> $kb001 .= $category->category_count;
> $kb001 .= ' ';
> 
>         if ( ( intval($hide_empty) == 0 || 
> ..
> 
>   I see that the category_count is null for some of the categories and
> therefore... I donot see them on the sidebar 
> 
>   I included "update_category_cache()" at the beginning of list_cats
> and doesnot help

We need to bump the DB version so that the category_count field is added
to the DB.  I'll fix that today.

Ryan



More information about the wp-testers mailing list