Use 3-letter FIFA country codes with fallback to 2-letter codes

This commit is contained in:
Brian Miyaji
2015-02-02 22:43:48 +11:00
parent 4b8bdd969e
commit ffa6274918
488 changed files with 214958 additions and 226 deletions

View File

@@ -120,7 +120,7 @@ if ( class_exists( 'WP_Importer' ) ) {
endforeach;
// Update nationality
$nationality = trim( strtoupper( sp_array_value( $meta, 'sp_nationality' ) ) );
$nationality = trim( strtolower( sp_array_value( $meta, 'sp_nationality' ) ) );
if ( $nationality == '*' ) $nationality = '';
update_post_meta( $id, 'sp_nationality', $nationality );