[wp-trac] [WordPress Trac] #19033: Problem with Hebrew letter "Nun" hiding search results

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 24 09:39:11 UTC 2011


#19033: Problem with Hebrew letter "Nun" hiding search results
--------------------------+----------------------------------
 Reporter:  shirgans      |       Owner:  shir.gans@…
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Charset       |     Version:  3.2.1
 Severity:  critical      |  Resolution:
 Keywords:  needs-patch   |
--------------------------+----------------------------------

Comment (by shirgans):

 Fornow, I have changed query.php under wp-includes, in order to have a
 quick hot fix (from line 2171:

 {{{
 if ( !empty($q['sentence']) ) {
                                 $q['search_terms'] = array($q['s']);
                         } else {

                if (strstr($q['s'], 'נ')) $q['search_terms'] =
 array($q['s']);
                else {
 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q['s'],
 $matches);
                                 $q['search_terms'] =
 array_map('_search_terms_tidy', $matches[0]);
                 }
                         }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19033#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list