[wp-trac] [WordPress Trac] #44296: Enable double-width space works as a separator in search query

WordPress Trac noreply at wordpress.org
Wed Jan 16 04:58:35 UTC 2019


#44296: Enable double-width space works as a separator in search query
-------------------------------------------------+-------------------------
 Reporter:  ryotsun                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.2
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by pento):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     refresh
 * version:  trunk =>
 * milestone:  5.1 => 5.2


Comment:

 I like [attachment:"44296_2.patch"], but I'm inclined to agree that we
 should be adding support for more than just double-width space.

 We could pass an array of spaces that we want treat as separators to the
 `str_replace()`, rather than adding the `u` modifier to the regex.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44296#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list