[wp-trac] [WordPress Trac] #42787: Location Search not working for same name cities in different states (Events & News dashboard widget)

WordPress Trac noreply at wordpress.org
Wed Dec 6 23:08:00 UTC 2017


#42787: Location Search not working for same name cities in different states
(Events & News dashboard widget)
----------------------------+----------------------------
 Reporter:  shedonist       |       Owner:  iandunn
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  WordPress.org
Component:  Administration  |     Version:  4.8
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+----------------------------

Comment (by shedonist):

 Thanks for the info, @iandunn. I installed the logger as requested.

 When I search for '''"Portsmouth, NH"''', I get this:[[BR]]

 [06-Dec-2017 23:00:12 UTC] debug_community_events_response: Valid response
 received. Details:
 {"request_url":"https:\/\/api.wordpress.org\/events\/1.0\/","request_args":{"number":5,"ip":"127.0.0.0","locale":"en_US","timezone":"America\/New_York","location":"Portsmouth,
 NH"},"response_code":200,"response_body":{"location":{"description":"Portsmouth","latitude":"36.8354300","longitude":"-76.2982700","country":"US"},"events":"4
 events trimmed."}}[[BR]]


 If I search for '''"Portsmouth"''', what I get seems to be identical
 except for the location field:[[BR]]

 [06-Dec-2017 23:00:25 UTC] debug_community_events_response: Valid response
 received. Details:
 {"request_url":"https:\/\/api.wordpress.org\/events\/1.0\/","request_args":{"number":5,"ip":"127.0.0.0","locale":"en_US","timezone":"America\/New_York","location":"Portsmouth"},"response_code":200,"response_body":{"location":{"description":"Portsmouth","latitude":"36.8354300","longitude":"-76.2982700","country":"US"},"events":"4
 events trimmed."}}[[BR]]


 If I search for '''"Portland, OR"''', I get this:[[BR]]
 [06-Dec-2017 23:01:35 UTC] debug_community_events_response: Valid response
 received. Details:
 {"request_url":"https:\/\/api.wordpress.org\/events\/1.0\/","request_args":{"number":5,"ip":"127.0.0.0","locale":"en_US","timezone":"America\/New_York","location":"Portland,
 OR"},"response_code":200,"response_body":{"location":{"description":"Portland","latitude":"43.6614700","longitude":"-70.2553300","country":"US"},"events":"5
 events trimmed."}}

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


More information about the wp-trac mailing list