Support » Plugin: Yoast SEO » Warning: preg_match() in class-metabox.php on line 1690

  • Resolved M

    (@infolegal)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • jrf

    (@jrf)

    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

    M

    (@infolegal)

    Thanks Juliette!

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

    jrf

    (@jrf)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: preg_match() in class-metabox.php on line 1690’ is closed to new replies.