[wp-testers] 2.1alpha2 and some plugins

Ryan Boren ryan at boren.nu
Fri Jun 30 01:22:40 GMT 2006


Podz wrote:
> I was looking at playing with a tag cloud last week and found this one:
> Plugin Name: Cat Cloud
> Plugin URI: http://zak.greant.com/
> 
> That fails with a 'no categories' error.
> The line that causes this is
>   /* Grab all categories, except excluded categories */
>   $all_cats = trim(list_cats(1, 'all', 'name', 'asc', '', 0, 0, 1, 1, 1,
> 1, 1, 0, 1, '', '', $catcloud_excluded_cats, 0));
> 
> Means nothing to me but it might to some plugin authors.

Anyone have a copy of this plugin?  The download link appears to be broken.

That snippet shows "No Categories" in 2.1 and nothing in 2.0.3.  No 
categories are present because child_of is set to category 1.  The 
difference in behavior regarding display of the "No Categories" string 
is because the $recurse flag is being abused as a way to avoid echoing. 
  It's an internal flag that is unfortunately exposed in the list_cats() 
argument list.  2.1 hides it as it should be hidden and no longer allows 
using it as a means to avoid echoing.

Ryan


More information about the wp-testers mailing list