Theme Error – Array-Map
-
I get the following errors at my site: stephaniesander.com
____
Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/content/77/12366977/html/wp-content/themes/rocco/functions.php on line 86Warning: implode() [function.implode]: Invalid arguments passed in /home/content/77/12366977/html/wp-content/themes/rocco/functions.php on line 86
_____line 86 is in bold:
function mfn_get_comment_excerpt($comment_ID = 0, $num_words = 20) {
$comment = get_comment( $comment_ID );
$comment_text = strip_tags($comment->comment_content);
$blah = explode(' ', $comment_text);
if (count($blah) > $num_words) {
$k = $num_words;
$use_dotdotdot = 1;
} else {
$k = count($blah);
$use_dotdotdot = 0;
}
$excerpt = '';
for ($i=0; $i<$k; $i++) {
$excerpt .= $blah[$i] . ' ';
}
$excerpt .= ($use_dotdotdot) ? '[...]' : '';
return apply_filters('get_comment_excerpt', $excerpt);
}
- The topic ‘Theme Error – Array-Map’ is closed to new replies.