Truncated meta description
-
Hello
I noticed, via the source code, that the content of the meta description is cut off and is followed by $#8230;
I saw in the file /wp-content/plugins/asgaros-forum/includes/forum.php the function public function cut_string($string, $length = 33, $at_next_space = false)
I don’t know what $length = 33 does, because changed to 255, nothing happens.
So, following the function, there is // Return substring.
// Return substring. if (function_exists('mb_substr')) { return mb_substr($string, 0, $length, 'UTF-8').' $#8230;'; } else { return substr($string, 0, $length).' $#8230;'; }
Which I changed to:
// Return substring. $length = 255; if (function_exists('mb_substr')) { return mb_substr($string, 0, $length, 'UTF-8'); } else { return substr($string, 0, $length); }
Note: replace $ with &
In short: I don’t know what is expected of this function!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Truncated meta description’ is closed to new replies.