WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin; WordPress SEO by Yoast] Empty description (4 posts)

  1. b.l.k
    Member
    Posted 2 years ago #

    Hello,
    i got an issue with empty description in some posts.
    Here are some exemples of what is set in the excerpt field
    'ààààààà à' => description is empty
    'ààààààààà' => description contains the excerpt
    'ààààààà_à' => description contains the excerpt
    'ééééééé é' => description contains the excerpt

    Is there an issue with some special chars and space character ?
    Thank you

  2. b.l.k
    Member
    Posted 2 years ago #

    Issue seems to be solved by using 'u' flag in
    $string = preg_replace( '/\s\s+/u',' ', $string );
    in function wpseo_replace_vars()
    in the file wpseo-functions.php

  3. kalligator
    Member
    Posted 2 years ago #

    If I do that modification, I get no description tag at all.
    Do you have any suggestions?

  4. b.l.k
    Member
    Posted 2 years ago #

    Are you using UTF-8 ? the last u is a modifier only for UTF-8

    http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php

Topic Closed

This topic has been closed to new replies.

About this Topic