Changeset 2726550
- Timestamp:
- 05/19/2022 06:46:32 AM (4 years ago)
- Location:
- country-code-selector/trunk/admin
- Files:
-
- 2 edited
-
js/countries.json (modified) (1 diff)
-
partials/country-code-selector-admin-display.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
country-code-selector/trunk/admin/js/countries.json
r2245398 r2726550 192 192 {"name": "Saudi Arabia", "code": "SA"}, 193 193 {"name": "Senegal", "code": "SN"}, 194 {"name": "Serbia and Montenegro", "code": "CS"}, 194 {"name": "Serbia", "code": "RS"}, 195 {"name": "Montenegro", "code": "ME"}, 195 196 {"name": "Seychelles", "code": "SC"}, 196 197 {"name": "Sierra Leone", "code": "SL"}, -
country-code-selector/trunk/admin/partials/country-code-selector-admin-display.php
r2532103 r2726550 166 166 <?php 167 167 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'))){ 169 169 $selected = 'selected'; 170 170 }else{
Note: See TracChangeset
for help on using the changeset viewer.