Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] focus keyword should accent non-english characters patch

  • 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/

  • The topic ‘[Plugin: WordPress SEO by Yoast] focus keyword should accent non-english characters patch’ is closed to new replies.