[wp-trac] [WordPress Trac] #31728: Search bug (Cyrillic)

WordPress Trac noreply at wordpress.org
Mon Jul 24 17:50:10 UTC 2017


#31728: Search bug (Cyrillic)
-------------------------------+------------------------------
 Reporter:  kazumy             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Permalinks         |     Version:  4.1.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by designsimply):

 @kazumy is the problem that the search results are different between
 "/search/проба" and "/?s=проба" or is the problem that you expected the
 permalink to be "/search/проба" instead of "/?s= проба" when you use the
 search widget in the sidebar to search for text?

 I tested just now and when I use the search widget in the sidebar on a
 site running WordPress 4.8, the format of the URL is always "/?s= проба"
 regardless of whether I search for an English word or a word in Cyrillic.

 It's highly possibly I am not testing exactly the same thing as you
 though. Can you tell me if your steps are different or if I am missing a
 setting change or sample content I should add in order for the test to be
 valid?

 My testing steps:

 1. Go to WP Admin > Settings > Permalink.
 1. Set "Custom Structure" to "/%post_id%" and click "Save Changes."
 1. Add the search widget to the sidebar if it's not already there.
 1. Publish a post containing Cyrillic words in it, i.e. "проба".
 1. Search for "проба" by entering it into the search widget in the
 sidebar.
 1. Check the format of the URL whether it is "/search/проба" or
 "/?s=проба".

 Results: when using the search widget in the sidebar, a search for an
 English word such as "poetry" or a Cyrillic word such as "проба" both
 result in a URL format of "/?s=проба".

 More testing steps:

 1. Publish a post containing Cyrillic words in it, i.e. "проба".
 1. Go to example.com/search/проба
 1. Go to example.com/?s=проба
 1. Check to see if the search results are the same.

 Results: a search with URL format "/search/проба" and URL format
 "/?s=проба" return the same search results.

 Tested with a site running WordPress 4.8 and default plugins (Akismet,
 Hello Dolly) hosted at Bluehost (PHP 5.4.24).

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


More information about the wp-trac mailing list