在下面的脚本中,我对“回声破灭()”得到一个无效的参数错误行:无效的参数错误捕获的破灭()
警告:破灭()[function.implode] : 无效的参数传递在...
下面是脚本:
if (!function_exists('wp_tag_cloud') || get_option('cb2_noposttags')) return;
$unlinkTags = get_option('cb2_unlinkTags');
echo '<div class="links"><h2>Tags</h2>';
if($unlinkTags)
{
$tags = get_tags();
foreach ($tags as $tag){
$ret[]= $tag->name;
}
echo implode(', ', $ret);
}
else
{
wp_tag_cloud('separator=, &smallest=11&largest=11');
}
echo '</div>';
我怎么可能会返工此搭上无效的参数?
'$ ret'是如何定义的? – BoltClock 2011-04-16 12:52:59