48c7f5ac by Kevin Burton

merged 239:240 to tag/0.4

1 parent 08c94fc3
......@@ -269,6 +269,10 @@ class ProfileValidation extends Common\Validation {
public function work_phone($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function work_extension($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function work_mobile($val) {
......
......@@ -65,6 +65,10 @@ use WP_User, WP_Roles;
<table cellspacing="0" class="widefat post fixed" style="border:none;">
<tbody>
<tr>
<th>User Login:</th>
<td><?php echo $account->user_login; ?></td>
</tr>
<?php if (!empty($first_name)): ?>
<tr>
<th>First Name:</th>
......
......@@ -205,7 +205,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
<tr>
<th>Phone:</th>
<td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" /></td>
<td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" />
&nbsp;Ext. <input style="width:40px;" type="text" name="work_extension" value="<?php echo get_user_meta($_GET['uid'], 'work_extension', true);?>" rel="mask-phone" /></td>
</tr>
<tr>
<th>Fax:</th>
......