Making WordPress.org


Ignore:
Timestamp:
04/21/2017 05:25:46 PM (9 years ago)
Author:
iandunn
Message:

Events: Try a loose LIKE search if all else fails for ideographic queries

Fixes https://github.com/coreymckrill/nearby-wordpress-events/issues/37

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php

    r5355 r5409  
    376376        ),
    377377
     378        // The database only has 大阪市 ("Osaka-shi"), not 大阪 ("Osaka"), so an exact match will for 大阪 will fail
     379        'city-endonym-ideographic-municipal-unit-asia' => array(
     380            'input' => array(
     381                'location_name' => '大阪',
     382                'locale'        => 'ja',
     383                'timezone'      => 'Asia/Tokyo',
     384            ),
     385            'expected' => array(
     386                'description' => 'osaka',
     387                'latitude'    => '34.694',
     388                'longitude'   => '135.502',
     389                'country'     => 'JP',
     390            ),
     391        ),
     392
    378393        'city-endonym-europe' => array(
    379394            'input' => array(
Note: See TracChangeset for help on using the changeset viewer.