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

Kishore Balakrishnan bekishore at gmail.com
Tue Nov 15 10:23:33 GMT 2005


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

Please advise

Cheers, Kishore.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-testers/attachments/20051115/49313b2c/attachment.htm


More information about the wp-testers mailing list