Changeset 3102 for trunk/wp-admin/user-edit.php
- Timestamp:
- 11/16/2005 02:54:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r2995 r3102 49 49 50 50 $profileuser = new WP_User($user_id); 51 $profiledata = $profileuser->data;52 51 53 52 if (!current_user_can('edit_users')) $errors['head'] = __('You do not have permission to edit this user.'); … … 81 80 <legend><?php _e('Name'); ?></legend> 82 81 <p><label><?php _e('Username: (no editing)'); ?><br /> 83 <input type="text" name="user_login" value="<?php echo $profile data->user_login; ?>" disabled="disabled" />82 <input type="text" name="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" /> 84 83 </label></p> 85 84 … … 96 95 97 96 <p><label><?php _e('First name:') ?><br /> 98 <input type="text" name="first_name" value="<?php echo $profile data->first_name ?>" /></label></p>97 <input type="text" name="first_name" value="<?php echo $profileuser->first_name ?>" /></label></p> 99 98 100 99 <p><label><?php _e('Last name:') ?><br /> 101 <input type="text" name="last_name" value="<?php echo $profile data->last_name ?>" /></label></p>100 <input type="text" name="last_name" value="<?php echo $profileuser->last_name ?>" /></label></p> 102 101 103 102 <p><label><?php _e('Nickname:') ?><br /> 104 <input type="text" name="nickname" value="<?php echo $profile data->nickname ?>" /></label></p>103 <input type="text" name="nickname" value="<?php echo $profileuser->nickname ?>" /></label></p> 105 104 106 105 </p><label><?php _e('Display name publicly as:') ?> <br /> 107 106 <select name="display_name"> 108 <option value="<?php echo $profile data->display_name; ?>"><?php echo $profiledata->display_name; ?></option>109 <option value="<?php echo $profile data->nickname ?>"><?php echo $profiledata->nickname ?></option>110 <option value="<?php echo $profile data->user_login ?>"><?php echo $profiledata->user_login ?></option>111 <?php if ( !empty( $profile data->first_name ) ) : ?>112 <option value="<?php echo $profile data->first_name ?>"><?php echo $profiledata->first_name ?></option>113 <?php endif; ?> 114 <?php if ( !empty( $profile data->last_name ) ) : ?>115 <option value="<?php echo $profile data->last_name ?>"><?php echo $profiledata->last_name ?></option>116 <?php endif; ?> 117 <?php if ( !empty( $profile data->first_name ) && !empty( $profiledata->last_name ) ) : ?>118 <option value="<?php echo $profile data->first_name." ".$profiledata->last_name ?>"><?php echo $profiledata->first_name." ".$profiledata->last_name ?></option>119 <option value="<?php echo $profile data->last_name." ".$profiledata->first_name ?>"><?php echo $profiledata->last_name." ".$profiledata->first_name ?></option>107 <option value="<?php echo $profileuser->display_name; ?>"><?php echo $profileuser->display_name; ?></option> 108 <option value="<?php echo $profileuser->nickname ?>"><?php echo $profileuser->nickname ?></option> 109 <option value="<?php echo $profileuser->user_login ?>"><?php echo $profileuser->user_login ?></option> 110 <?php if ( !empty( $profileuser->first_name ) ) : ?> 111 <option value="<?php echo $profileuser->first_name ?>"><?php echo $profileuser->first_name ?></option> 112 <?php endif; ?> 113 <?php if ( !empty( $profileuser->last_name ) ) : ?> 114 <option value="<?php echo $profileuser->last_name ?>"><?php echo $profileuser->last_name ?></option> 115 <?php endif; ?> 116 <?php if ( !empty( $profileuser->first_name ) && !empty( $profileuser->last_name ) ) : ?> 117 <option value="<?php echo $profileuser->first_name." ".$profileuser->last_name ?>"><?php echo $profileuser->first_name." ".$profileuser->last_name ?></option> 118 <option value="<?php echo $profileuser->last_name." ".$profileuser->first_name ?>"><?php echo $profileuser->last_name." ".$profileuser->first_name ?></option> 120 119 <?php endif; ?> 121 120 </select></label></p> … … 126 125 127 126 <p><label><?php _e('E-mail: (required)') ?><br /> 128 <input type="text" name="email" value="<?php echo $profile data->user_email ?>" /></label></p>127 <input type="text" name="email" value="<?php echo $profileuser->user_email ?>" /></label></p> 129 128 130 129 <p><label><?php _e('Website:') ?><br /> 131 <input type="text" name="url" value="<?php echo $profile data->user_url ?>" />130 <input type="text" name="url" value="<?php echo $profileuser->user_url ?>" /> 132 131 </label></p> 133 132 134 133 <p><label><?php _e('AIM:') ?><br /> 135 <input type="text" name="aim" value="<?php echo $profile data->aim ?>" />134 <input type="text" name="aim" value="<?php echo $profileuser->aim ?>" /> 136 135 </label></p> 137 136 138 137 <p><label><?php _e('Yahoo IM:') ?><br /> 139 <input type="text" name="yim" value="<?php echo $profile data->yim ?>" />138 <input type="text" name="yim" value="<?php echo $profileuser->yim ?>" /> 140 139 </label></p> 141 140 142 141 <p><label><?php _e('Jabber / Google Talk:') ?> 143 <input type="text" name="jabber" value="<?php echo $profile data->jabber ?>" /></label>142 <input type="text" name="jabber" value="<?php echo $profileuser->jabber ?>" /></label> 144 143 </p> 145 144 </fieldset> … … 148 147 <legend><?php _e('About the user'); ?></legend> 149 148 <p class="desc"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p> 150 <p><textarea name="description" rows="5" cols="30"><?php echo $profile data->description ?></textarea></p>149 <p><textarea name="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea></p> 151 150 </fieldset> 152 151
Note: See TracChangeset
for help on using the changeset viewer.