WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Warning: preg_match() in class-metabox.php on line 1690 (4 posts)

  1. M
    Member
    Posted 9 months ago #

    This warning appears if in the Focus keyword field a / (slash) is entered alone or with text.

    Warning: preg_match() [function.preg-match]: Unknown modifier 't' in /wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1690

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. jrf
    Member
    Posted 9 months ago #

    Hi M,

    I'll send a pull request to Yoast with the solution, hopefully it'll make it into a next version of the plugin. In the mean time, you can solve it by changing line 1690 in file /wp-content/plugins/wordpress-seo/admin/class-metabox.php to:

    if ( !preg_match('%\b'.$job['keyword'].'\b%', $firstp) && !preg_match('%\b'.$job['keyword_folded'].'\b%', $firstp) ) {

    Smile,
    Juliette

  3. M
    Member
    Posted 9 months ago #

    Thanks Juliette!

    Your fix is working like a charm. I'll just mark this as resolved.

  4. jrf
    Member
    Posted 9 months ago #

    You're welcome ;-)

    P.S.: in the mean time my fix has been merged to the code plugin code, so it should be in the next release

Reply

You must log in to post.

About this Plugin

About this Topic