[wp-trac] [WordPress Trac] #7394: Search: order results by relevance

WordPress Trac noreply at wordpress.org
Thu Sep 26 00:18:29 UTC 2013


#7394: Search: order results by relevance
-------------------------------------------------+-------------------------
 Reporter:  markjaquith                          |       Owner:
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  normal                               |   Milestone:  3.7
Component:  General                              |     Version:  2.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing 3.7-early    |
  needs-refresh                                  |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Looking at .6.diff and .7.diff: `array_map( 'trim', ... )` may not be safe
 for UTF-8 chars. By default `trim()` removes more than `[\r\n\t ]+` which
 can break certain UTF-8 character sequences similar to `preg_replace(
 '/\s+/', ... )`. Seems safer to use a loop and control what exactly is
 trimmed.

 Also there's a typo in the stopwords string, "the" is listed twice (my
 fault).

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


More information about the wp-trac mailing list