Plugin Directory

Changeset 2726550


Ignore:
Timestamp:
05/19/2022 06:46:32 AM (4 years ago)
Author:
intolap
Message:

County list updated for Serbia and Montenegro

Location:
country-code-selector/trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • country-code-selector/trunk/admin/js/countries.json

    r2245398 r2726550  
    192192    {"name": "Saudi Arabia", "code": "SA"},
    193193    {"name": "Senegal", "code": "SN"},
    194     {"name": "Serbia and Montenegro", "code": "CS"},
     194    {"name": "Serbia", "code": "RS"},
     195    {"name": "Montenegro", "code": "ME"},
    195196    {"name": "Seychelles", "code": "SC"},
    196197    {"name": "Sierra Leone", "code": "SL"},
  • country-code-selector/trunk/admin/partials/country-code-selector-admin-display.php

    r2532103 r2726550  
    166166                    <?php
    167167                        foreach ($allCountries as $allCountry) {
    168                             if(in_array(strtolower($allCountry['code']), get_option('selected_countries'))){
     168                            if(get_option('selected_countries')!=='' && in_array(strtolower($allCountry['code']), get_option('selected_countries'))){
    169169                                $selected = 'selected';
    170170                            }else{
Note: See TracChangeset for help on using the changeset viewer.