Changeset 10557
- Timestamp:
- 01/07/2021 10:25:00 PM (4 years ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/events/1.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r10555 r10557 370 370 WHERE name = %s 371 371 ORDER BY 372 FIELD( %s, country ) DESC, 372 373 alt ASC, 373 374 population > 0 DESC, 374 FIELD( %s, country ) DESC,375 375 FIELD( %s, timezone ) DESC, 376 376 LEFT( type, 1 ) = "P" DESC, … … 394 394 WHERE name LIKE %s 395 395 ORDER BY 396 FIELD( %s, country ) DESC, 396 397 alt ASC, 397 398 population > 0 DESC, 398 FIELD( %s, country ) DESC,399 399 FIELD( %s, timezone ) DESC, 400 400 LEFT( type, 1 ) = "P" DESC, … … 415 415 return $row; 416 416 } 417 418 417 419 418 /** -
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index-phpunit.php
r10554 r10557 683 683 ), 684 684 685 'usa-city- altname-disambiguation-by-population' => array(685 'usa-city-disambiguation-by-preferred-name' => array( 686 686 'input' => array( 687 687 'location_name' => 'Chicago', … … 696 696 ), 697 697 ), 698 'usa-city- altname-disambiguation-by-population-2' => array(698 'usa-city-disambiguation-by-preferred-name-2' => array( 699 699 'input' => array( 700 700 'location_name' => 'Chicago', … … 707 707 'longitude' => '-87.650', 708 708 'country' => 'US', 709 ), 710 ), 711 712 // Calcutta, Ohio, USA is a preferred name, but the country is more relevant here. 713 'city-disambiguation-by-country' => array( 714 'input' => array( 715 'location_name' => 'Calcutta', 716 'locale' => 'hi_IN', 717 'timezone' => 'Asia/Kolkata', 718 ), 719 'expected' => array( 720 'description' => 'calcutta', 721 'latitude' => '22.563', 722 'longitude' => '88.363', 723 'country' => 'IN', 709 724 ), 710 725 ),
Note: See TracChangeset
for help on using the changeset viewer.