• 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)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @doczimute

    This is on purpose. A description should be relatively short in general. It doesn’t make sense to output the follow conten there – otherwise depending on its length it could be theoretically thousands of lines.

Viewing 1 replies (of 1 total)
  • The topic ‘Truncated meta description’ is closed to new replies.