WordPress.org

Forums

WordPress SEO by Yoast
focus keyword should accent non-english characters + patch (1 post)

  1. Viktor Szépe
    Member
    Posted 3 years ago #

    admin/ajax.php

    preg_match_all( '/suggestion data="([^"]+)"\/>/', $result['body'], $matches);
            foreach ($matches[1] as $key => $match) {
                    $new_str='';
                    for ($i = 0; $i < strlen($match); $i++) {
                            $code=ord($match[$i]);
                            $new_str .= ($code > 127) ? '&#'.$code.';' : $match[$i];
                    }
                    $matches[1][$key] = html_entity_decode($new_str,0,"UTF-8");
            }
            echo json_encode( $matches[1] );

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

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