WordPress.org

Forums

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

  1. M
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Thanks Juliette!

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

  4. jrf
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic