Changeset 5538
- Timestamp:
- 06/05/2017 10:52:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r5537 r5538 677 677 $location_word_count = str_word_count( $location_name ); 678 678 $location_name_parts = explode( ' ', $location_name ); 679 $valid_country_codes = get_valid_country_codes();680 679 681 680 /* … … 712 711 } 713 712 714 /**715 * Get a list of valid country codes716 *717 * @return array718 */719 function get_valid_country_codes() {720 global $wpdb;721 722 return $wpdb->get_col( "SELECT DISTINCT country FROM geoname" );723 }724 713 725 714 /**
Note: See TracChangeset
for help on using the changeset viewer.