ucfirst strtolower
This commit is contained in:
parent
be2c7cffa2
commit
da3a9031f1
|
@ -39,11 +39,11 @@ function simple_location_post_save($post_id) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($_POST['city'] == '') {
|
if ($_POST['city'] == '') {
|
||||||
$_POST['city'] = $locations['cityName'];
|
$_POST['city'] = ucfirst(strtolower($locations['cityName']));
|
||||||
}
|
}
|
||||||
update_post_meta($post_id, '_simple_location_city', sanitize_text_field($_POST['city']));
|
update_post_meta($post_id, '_simple_location_city', sanitize_text_field($_POST['city']));
|
||||||
if ($_POST['country'] == '') {
|
if ($_POST['country'] == '') {
|
||||||
$_POST['country'] = $locations['countryName'];
|
$_POST['country'] = ucfirst(strtolower($locations['countryName']));
|
||||||
}
|
}
|
||||||
update_post_meta($post_id, '_simple_location_country', sanitize_text_field($_POST['country']));
|
update_post_meta($post_id, '_simple_location_country', sanitize_text_field($_POST['country']));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue