From da3a9031f1dea50d73a41db6273387775fbcca10 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 6 Jan 2014 23:06:37 -0500 Subject: [PATCH] ucfirst strtolower --- simple-location.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-location.php b/simple-location.php index 14d318b..29d6c30 100644 --- a/simple-location.php +++ b/simple-location.php @@ -39,11 +39,11 @@ function simple_location_post_save($post_id) { } } 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'])); 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'])); }