mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Edit user administration panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 if ( defined('IS_PROFILE_PAGE') && IS_PROFILE_PAGE )
mp-wp_genesis 13 $is_profile_page = true;
mp-wp_genesis 14 else
mp-wp_genesis 15 $is_profile_page = false;
mp-wp_genesis 16
mp-wp_genesis 17 /**
mp-wp_genesis 18 * Display JavaScript for profile page.
mp-wp_genesis 19 *
mp-wp_genesis 20 * @since 2.5.0
mp-wp_genesis 21 */
mp-wp_genesis 22 function profile_js ( ) {
mp-wp_genesis 23 ?>
mp-wp_genesis 24 <script type="text/javascript">
mp-wp_genesis 25 (function($){
mp-wp_genesis 26
mp-wp_genesis 27 function check_pass_strength () {
mp-wp_genesis 28
mp-wp_genesis 29 var pass = $('#pass1').val();
mp-wp_genesis 30 var user = $('#user_login').val();
mp-wp_genesis 31
mp-wp_genesis 32 $('#pass-strength-result').removeClass('short bad good strong');
mp-wp_genesis 33 if ( ! pass ) {
mp-wp_genesis 34 $('#pass-strength-result').html( pwsL10n.empty );
mp-wp_genesis 35 return;
mp-wp_genesis 36 }
mp-wp_genesis 37
mp-wp_genesis 38 var strength = passwordStrength(pass, user);
mp-wp_genesis 39
mp-wp_genesis 40 if ( 2 == strength )
mp-wp_genesis 41 $('#pass-strength-result').addClass('bad').html( pwsL10n.bad );
mp-wp_genesis 42 else if ( 3 == strength )
mp-wp_genesis 43 $('#pass-strength-result').addClass('good').html( pwsL10n.good );
mp-wp_genesis 44 else if ( 4 == strength )
mp-wp_genesis 45 $('#pass-strength-result').addClass('strong').html( pwsL10n.strong );
mp-wp_genesis 46 else
mp-wp_genesis 47 // this catches 'Too short' and the off chance anything else comes along
mp-wp_genesis 48 $('#pass-strength-result').addClass('short').html( pwsL10n.short );
mp-wp_genesis 49
mp-wp_genesis 50 }
mp-wp_genesis 51
mp-wp_genesis 52 function update_nickname () {
mp-wp_genesis 53
mp-wp_genesis 54 var nickname = $('#nickname').val();
mp-wp_genesis 55 var display_nickname = $('#display_nickname').val();
mp-wp_genesis 56
mp-wp_genesis 57 if ( nickname == '' ) {
mp-wp_genesis 58 $('#display_nickname').remove();
mp-wp_genesis 59 }
mp-wp_genesis 60 $('#display_nickname').val(nickname).html(nickname);
mp-wp_genesis 61
mp-wp_genesis 62 }
mp-wp_genesis 63
mp-wp_genesis 64 $(document).ready( function() {
mp-wp_genesis 65 $('#nickname').blur(update_nickname);
mp-wp_genesis 66 $('#pass1').val('').keyup( check_pass_strength );
mp-wp_genesis 67 $('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
mp-wp_genesis 68 });
mp-wp_genesis 69 })(jQuery);
mp-wp_genesis 70 </script>
mp-wp_genesis 71 <?php
mp-wp_genesis 72 }
mp-wp_genesis 73
mp-wp_genesis 74 if ( $is_profile_page ) {
mp-wp_genesis 75 add_action('admin_head', 'profile_js');
mp-wp_genesis 76 wp_enqueue_script('jquery');
mp-wp_genesis 77 wp_enqueue_script('password-strength-meter');
mp-wp_genesis 78 }
mp-wp_genesis 79
mp-wp_genesis 80 $title = $is_profile_page? __('Profile') : __('Edit User');
mp-wp_genesis 81 if ( current_user_can('edit_users') && !$is_profile_page )
mp-wp_genesis 82 $submenu_file = 'users.php';
mp-wp_genesis 83 else
mp-wp_genesis 84 $submenu_file = 'profile.php';
mp-wp_genesis 85 $parent_file = 'users.php';
mp-wp_genesis 86
mp-wp_genesis 87 wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));
mp-wp_genesis 88
mp-wp_genesis 89 $wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer));
mp-wp_genesis 90
mp-wp_genesis 91 $user_id = (int) $user_id;
mp-wp_genesis 92
mp-wp_genesis 93 if ( !$user_id ) {
mp-wp_genesis 94 if ( $is_profile_page ) {
mp-wp_genesis 95 $current_user = wp_get_current_user();
mp-wp_genesis 96 $user_id = $current_user->ID;
mp-wp_genesis 97 } else {
mp-wp_genesis 98 wp_die(__('Invalid user ID.'));
mp-wp_genesis 99 }
mp-wp_genesis 100 } elseif ( !get_userdata($user_id) ) {
mp-wp_genesis 101 wp_die( __('Invalid user ID.') );
mp-wp_genesis 102 }
mp-wp_genesis 103
mp-wp_genesis 104 /**
mp-wp_genesis 105 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
mp-wp_genesis 106 *
mp-wp_genesis 107 * @since 2.7.0
mp-wp_genesis 108 *
mp-wp_genesis 109 * @param object $user User data object
mp-wp_genesis 110 */
mp-wp_genesis 111 function use_ssl_preference($user) {
mp-wp_genesis 112 ?>
mp-wp_genesis 113 <tr>
mp-wp_genesis 114 <th scope="row"><?php _e('Use https')?></th>
mp-wp_genesis 115 <td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></td>
mp-wp_genesis 116 </tr>
mp-wp_genesis 117 <?php
mp-wp_genesis 118 }
mp-wp_genesis 119
mp-wp_genesis 120 switch ($action) {
mp-wp_genesis 121 case 'switchposts':
mp-wp_genesis 122
mp-wp_genesis 123 check_admin_referer();
mp-wp_genesis 124
mp-wp_genesis 125 /* TODO: Switch all posts from one user to another user */
mp-wp_genesis 126
mp-wp_genesis 127 break;
mp-wp_genesis 128
mp-wp_genesis 129 case 'update':
mp-wp_genesis 130
mp-wp_genesis 131 check_admin_referer('update-user_' . $user_id);
mp-wp_genesis 132
mp-wp_genesis 133 if ( !current_user_can('edit_user', $user_id) )
mp-wp_genesis 134 wp_die(__('You do not have permission to edit this user.'));
mp-wp_genesis 135
mp-wp_genesis 136 if ($is_profile_page)
mp-wp_genesis 137 do_action('personal_options_update');
mp-wp_genesis 138 else
mp-wp_genesis 139 do_action('edit_user_profile_update');
mp-wp_genesis 140
mp-wp_genesis 141 $errors = edit_user($user_id);
mp-wp_genesis 142
mp-wp_genesis 143 if ( !is_wp_error( $errors ) ) {
mp-wp_genesis 144 $redirect = ($is_profile_page? "profile.php?" : "user-edit.php?user_id=$user_id&"). "updated=true";
mp-wp_genesis 145 $redirect = add_query_arg('wp_http_referer', urlencode($wp_http_referer), $redirect);
mp-wp_genesis 146 wp_redirect($redirect);
mp-wp_genesis 147 exit;
mp-wp_genesis 148 }
mp-wp_genesis 149
mp-wp_genesis 150 default:
mp-wp_genesis 151 $profileuser = get_user_to_edit($user_id);
mp-wp_genesis 152
mp-wp_genesis 153 if ( !current_user_can('edit_user', $user_id) )
mp-wp_genesis 154 wp_die(__('You do not have permission to edit this user.'));
mp-wp_genesis 155
mp-wp_genesis 156 include ('admin-header.php');
mp-wp_genesis 157 ?>
mp-wp_genesis 158
mp-wp_genesis 159 <?php if ( isset($_GET['updated']) ) : ?>
mp-wp_genesis 160 <div id="message" class="updated fade">
mp-wp_genesis 161 <p><strong><?php _e('User updated.') ?></strong></p>
mp-wp_genesis 162 <?php if ( $wp_http_referer && !$is_profile_page ) : ?>
mp-wp_genesis 163 <p><a href="users.php"><?php _e('← Back to Authors and Users'); ?></a></p>
mp-wp_genesis 164 <?php endif; ?>
mp-wp_genesis 165 </div>
mp-wp_genesis 166 <?php endif; ?>
mp-wp_genesis 167 <?php if ( isset( $errors ) && is_wp_error( $errors ) ) : ?>
mp-wp_genesis 168 <div class="error">
mp-wp_genesis 169 <ul>
mp-wp_genesis 170 <?php
mp-wp_genesis 171 foreach( $errors->get_error_messages() as $message )
mp-wp_genesis 172 echo "<li>$message</li>";
mp-wp_genesis 173 ?>
mp-wp_genesis 174 </ul>
mp-wp_genesis 175 </div>
mp-wp_genesis 176 <?php endif; ?>
mp-wp_genesis 177
mp-wp_genesis 178 <div class="wrap" id="profile-page">
mp-wp_genesis 179 <?php screen_icon(); ?>
mp-wp_genesis 180 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 181
mp-wp_genesis 182 <form id="your-profile" action="" method="post">
mp-wp_genesis 183 <?php wp_nonce_field('update-user_' . $user_id) ?>
mp-wp_genesis 184 <?php if ( $wp_http_referer ) : ?>
mp-wp_genesis 185 <input type="hidden" name="wp_http_referer" value="<?php echo clean_url($wp_http_referer); ?>" />
mp-wp_genesis 186 <?php endif; ?>
mp-wp_genesis 187 <p>
mp-wp_genesis 188 <input type="hidden" name="from" value="profile" />
mp-wp_genesis 189 <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
mp-wp_genesis 190 </p>
mp-wp_genesis 191
mp-wp_genesis 192 <h3><?php _e('Personal Options'); ?></h3>
mp-wp_genesis 193
mp-wp_genesis 194 <table class="form-table">
mp-wp_genesis 195 <?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?>
mp-wp_genesis 196 <tr>
mp-wp_genesis 197 <th scope="row"><?php _e('Visual Editor')?></th>
mp-wp_genesis 198 <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></td>
mp-wp_genesis 199 </tr>
mp-wp_genesis 200 <?php endif; ?>
mp-wp_genesis 201 <?php if (count($_wp_admin_css_colors) > 1 ) : ?>
mp-wp_genesis 202 <tr>
mp-wp_genesis 203 <th scope="row"><?php _e('Admin Color Scheme')?></th>
mp-wp_genesis 204 <td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend>
mp-wp_genesis 205 <?php
mp-wp_genesis 206 $current_color = get_user_option('admin_color', $user_id);
mp-wp_genesis 207 if ( empty($current_color) )
mp-wp_genesis 208 $current_color = 'fresh';
mp-wp_genesis 209 foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
mp-wp_genesis 210 <div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
mp-wp_genesis 211 <table class="color-palette">
mp-wp_genesis 212 <tr>
mp-wp_genesis 213 <?php foreach ( $color_info->colors as $html_color ): ?>
mp-wp_genesis 214 <td style="background-color: <?php echo $html_color ?>" title="<?php echo $color ?>"> </td>
mp-wp_genesis 215 <?php endforeach; ?>
mp-wp_genesis 216 </tr>
mp-wp_genesis 217 </table>
mp-wp_genesis 218
mp-wp_genesis 219 <label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label>
mp-wp_genesis 220 </div>
mp-wp_genesis 221 <?php endforeach; ?>
mp-wp_genesis 222 </fieldset></td>
mp-wp_genesis 223 </tr>
mp-wp_genesis 224 <tr>
mp-wp_genesis 225 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
mp-wp_genesis 226 <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation. <a href="http://codex.wordpress.org/Keyboard_Shortcuts">More information</a>' ); ?></label></td>
mp-wp_genesis 227 </tr>
mp-wp_genesis 228 <?php
mp-wp_genesis 229 endif;
mp-wp_genesis 230 do_action('personal_options', $profileuser);
mp-wp_genesis 231 ?>
mp-wp_genesis 232 </table>
mp-wp_genesis 233 <?php
mp-wp_genesis 234 if ( $is_profile_page )
mp-wp_genesis 235 do_action('profile_personal_options', $profileuser);
mp-wp_genesis 236 ?>
mp-wp_genesis 237
mp-wp_genesis 238 <h3><?php _e('Name') ?></h3>
mp-wp_genesis 239
mp-wp_genesis 240 <table class="form-table">
mp-wp_genesis 241 <tr>
mp-wp_genesis 242 <th><label for="user_login"><?php _e('Username'); ?></label></th>
mp-wp_genesis 243 <td><input type="text" name="user_login" id="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" class="regular-text" /> <?php _e('Your username cannot be changed.'); ?></td>
mp-wp_genesis 244 </tr>
mp-wp_genesis 245
mp-wp_genesis 246 <?php if ( !$is_profile_page ): ?>
mp-wp_genesis 247 <tr><th><label for="role"><?php _e('Role:') ?></label></th>
mp-wp_genesis 248 <?php
mp-wp_genesis 249 // print_r($profileuser);
mp-wp_genesis 250 echo '<td><select name="role" id="role">';
mp-wp_genesis 251 $role_list = '';
mp-wp_genesis 252 $user_has_role = false;
mp-wp_genesis 253 foreach($wp_roles->role_names as $role => $name) {
mp-wp_genesis 254 $name = translate_with_context($name);
mp-wp_genesis 255 if ( $profileuser->has_cap($role) ) {
mp-wp_genesis 256 $selected = ' selected="selected"';
mp-wp_genesis 257 $user_has_role = true;
mp-wp_genesis 258 } else {
mp-wp_genesis 259 $selected = '';
mp-wp_genesis 260 }
mp-wp_genesis 261 $role_list .= "<option value=\"{$role}\"{$selected}>{$name}</option>";
mp-wp_genesis 262 }
mp-wp_genesis 263 if ( $user_has_role )
mp-wp_genesis 264 $role_list .= '<option value="">' . __('— No role for this blog —') . '</option>';
mp-wp_genesis 265 else
mp-wp_genesis 266 $role_list .= '<option value="" selected="selected">' . __('— No role for this blog —') . '</option>';
mp-wp_genesis 267 echo $role_list . '</select></td></tr>';
mp-wp_genesis 268 ?>
mp-wp_genesis 269 <?php endif; ?>
mp-wp_genesis 270
mp-wp_genesis 271 <tr>
mp-wp_genesis 272 <th><label for="first_name"><?php _e('First name') ?></label></th>
mp-wp_genesis 273 <td><input type="text" name="first_name" id="first_name" value="<?php echo $profileuser->first_name ?>" class="regular-text" /></td>
mp-wp_genesis 274 </tr>
mp-wp_genesis 275
mp-wp_genesis 276 <tr>
mp-wp_genesis 277 <th><label for="last_name"><?php _e('Last name') ?></label></th>
mp-wp_genesis 278 <td><input type="text" name="last_name" id="last_name" value="<?php echo $profileuser->last_name ?>" class="regular-text" /></td>
mp-wp_genesis 279 </tr>
mp-wp_genesis 280
mp-wp_genesis 281 <tr>
mp-wp_genesis 282 <th><label for="nickname"><?php _e('Nickname') ?></label></th>
mp-wp_genesis 283 <td><input type="text" name="nickname" id="nickname" value="<?php echo $profileuser->nickname ?>" class="regular-text" /></td>
mp-wp_genesis 284 </tr>
mp-wp_genesis 285
mp-wp_genesis 286 <tr>
mp-wp_genesis 287 <th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>
mp-wp_genesis 288 <td>
mp-wp_genesis 289 <select name="display_name" id="display_name">
mp-wp_genesis 290 <?php
mp-wp_genesis 291 $public_display = array();
mp-wp_genesis 292 $public_display['display_displayname'] = $profileuser->display_name;
mp-wp_genesis 293 $public_display['display_nickname'] = $profileuser->nickname;
mp-wp_genesis 294 $public_display['display_username'] = $profileuser->user_login;
mp-wp_genesis 295 $public_display['display_firstname'] = $profileuser->first_name;
mp-wp_genesis 296 $public_display['display_firstlast'] = $profileuser->first_name.' '.$profileuser->last_name;
mp-wp_genesis 297 $public_display['display_lastfirst'] = $profileuser->last_name.' '.$profileuser->first_name;
mp-wp_genesis 298 $public_display = array_unique(array_filter(array_map('trim', $public_display)));
mp-wp_genesis 299 foreach($public_display as $id => $item) {
mp-wp_genesis 300 ?>
mp-wp_genesis 301 <option id="<?php echo $id; ?>" value="<?php echo $item; ?>"><?php echo $item; ?></option>
mp-wp_genesis 302 <?php
mp-wp_genesis 303 }
mp-wp_genesis 304 ?>
mp-wp_genesis 305 </select>
mp-wp_genesis 306 </td>
mp-wp_genesis 307 </tr>
mp-wp_genesis 308 </table>
mp-wp_genesis 309
mp-wp_genesis 310 <h3><?php _e('Contact Info') ?></h3>
mp-wp_genesis 311
mp-wp_genesis 312 <table class="form-table">
mp-wp_genesis 313 <tr>
mp-wp_genesis 314 <th><label for="email"><?php _e('E-mail') ?></label></th>
mp-wp_genesis 315 <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" class="regular-text" /> <?php _e('Required.');?></td>
mp-wp_genesis 316 </tr>
mp-wp_genesis 317
mp-wp_genesis 318 <tr>
mp-wp_genesis 319 <th><label for="url"><?php _e('Website') ?></label></th>
mp-wp_genesis 320 <td><input type="text" name="url" id="url" value="<?php echo $profileuser->user_url ?>" class="regular-text" /></td>
mp-wp_genesis 321 </tr>
mp-wp_genesis 322
mp-wp_genesis 323 <tr>
mp-wp_genesis 324 <th><label for="aim"><?php _e('AIM') ?></label></th>
mp-wp_genesis 325 <td><input type="text" name="aim" id="aim" value="<?php echo $profileuser->aim ?>" class="regular-text" /></td>
mp-wp_genesis 326 </tr>
mp-wp_genesis 327
mp-wp_genesis 328 <tr>
mp-wp_genesis 329 <th><label for="yim"><?php _e('Yahoo IM') ?></label></th>
mp-wp_genesis 330 <td><input type="text" name="yim" id="yim" value="<?php echo $profileuser->yim ?>" class="regular-text" /></td>
mp-wp_genesis 331 </tr>
mp-wp_genesis 332
mp-wp_genesis 333 <tr>
mp-wp_genesis 334 <th><label for="jabber"><?php _e('Jabber / Google Talk') ?></label></th>
mp-wp_genesis 335 <td><input type="text" name="jabber" id="jabber" value="<?php echo $profileuser->jabber ?>" class="regular-text" /></td>
mp-wp_genesis 336 </tr>
mp-wp_genesis 337 </table>
mp-wp_genesis 338
mp-wp_genesis 339 <h3><?php $is_profile_page? _e('About Yourself') : _e('About the user'); ?></h3>
mp-wp_genesis 340
mp-wp_genesis 341 <table class="form-table">
mp-wp_genesis 342 <tr>
mp-wp_genesis 343 <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
mp-wp_genesis 344 <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
mp-wp_genesis 345 </tr>
mp-wp_genesis 346
mp-wp_genesis 347 <?php
mp-wp_genesis 348 $show_password_fields = apply_filters('show_password_fields', true);
mp-wp_genesis 349 if ( $show_password_fields ) :
mp-wp_genesis 350 ?>
mp-wp_genesis 351 <tr>
mp-wp_genesis 352 <th><label for="pass1"><?php _e('New Password'); ?></label></th>
mp-wp_genesis 353 <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
mp-wp_genesis 354 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
mp-wp_genesis 355 <?php if ( $is_profile_page ): ?>
mp-wp_genesis 356 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
mp-wp_genesis 357 <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p>
mp-wp_genesis 358 <?php endif; ?>
mp-wp_genesis 359 </td>
mp-wp_genesis 360 </tr>
mp-wp_genesis 361 <?php endif; ?>
mp-wp_genesis 362 </table>
mp-wp_genesis 363
mp-wp_genesis 364 <?php
mp-wp_genesis 365 if ( $is_profile_page ) {
mp-wp_genesis 366 do_action('show_user_profile');
mp-wp_genesis 367 } else {
mp-wp_genesis 368 do_action('edit_user_profile');
mp-wp_genesis 369 }
mp-wp_genesis 370 ?>
mp-wp_genesis 371
mp-wp_genesis 372 <?php if (count($profileuser->caps) > count($profileuser->roles)): ?>
mp-wp_genesis 373 <br class="clear" />
mp-wp_genesis 374 <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
mp-wp_genesis 375 <tr>
mp-wp_genesis 376 <th scope="row"><?php _e('Additional Capabilities') ?></th>
mp-wp_genesis 377 <td><?php
mp-wp_genesis 378 $output = '';
mp-wp_genesis 379 foreach($profileuser->caps as $cap => $value) {
mp-wp_genesis 380 if(!$wp_roles->is_role($cap)) {
mp-wp_genesis 381 if($output != '') $output .= ', ';
mp-wp_genesis 382 $output .= $value ? $cap : "Denied: {$cap}";
mp-wp_genesis 383 }
mp-wp_genesis 384 }
mp-wp_genesis 385 echo $output;
mp-wp_genesis 386 ?></td>
mp-wp_genesis 387 </tr>
mp-wp_genesis 388 </table>
mp-wp_genesis 389 <?php endif; ?>
mp-wp_genesis 390
mp-wp_genesis 391 <p class="submit">
mp-wp_genesis 392 <input type="hidden" name="action" value="update" />
mp-wp_genesis 393 <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />
mp-wp_genesis 394 <input type="submit" class="button-primary" value="<?php $is_profile_page? _e('Update Profile') : _e('Update User') ?>" name="submit" />
mp-wp_genesis 395 </p>
mp-wp_genesis 396 </form>
mp-wp_genesis 397 </div>
mp-wp_genesis 398 <?php
mp-wp_genesis 399 break;
mp-wp_genesis 400 }
mp-wp_genesis 401
mp-wp_genesis 402 include('admin-footer.php');
mp-wp_genesis 403 ?>