• Hi, I’m using WordPress 3.9.2 and WordPress SEO by Yoast 1.6.1.

    I have had an issue when I tried to use keywords with accent in spanish language.

    The keyword density check was wrong because it didn’t detect my accent keyword.

    In order to solve the problem, I have done an update in one of your plugin files: class-metabox.php

    Concretely I have updated the following:

    From

    $keywordCount = preg_match_all( '\b’ . preg_quote( $job[‘keyword’], ‘' ) . '\bmiu’, utf8_encode( $body ), $res );`

    To

    $keywordCount = preg_match_all( '/' . $job['keyword'] . '/', $body , $res );

    It is now working for me and for my accented keywords like “murciélago” and keyword density check is detecting them.

    Best regards!

    PD: I have written about that in my blog.

    https://wordpress.org/plugins/wordpress-seo/

  • The topic ‘Keyword density check’ is closed to new replies.