Changeset 8135
- Timestamp:
- 06/20/2008 03:28:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r7898 r8135 41 41 } 42 42 43 } 44 45 function update_nickname ( ) { 46 47 var nickname = jQuery('#nickname').val(); 48 var display_nickname = jQuery('#display_nickname').val(); 49 50 if ( nickname == '' ) { 51 jQuery('#display_nickname').remove(); 52 } 53 jQuery('#display_nickname').val(nickname).html(nickname); 54 43 55 } 44 56 … … 50 62 jQuery(document).ready( function() { 51 63 jQuery('#pass1,#pass2').attr('autocomplete','off'); 64 jQuery('#nickname').blur(update_nickname); 52 65 }); 53 66 </script> … … 246 259 <?php 247 260 $public_display = array(); 248 $public_display[ ] = $profileuser->display_name;249 $public_display[ ] = $profileuser->nickname;250 $public_display[ ] = $profileuser->user_login;251 $public_display[ ] = $profileuser->first_name;252 $public_display[ ] = $profileuser->first_name.' '.$profileuser->last_name;253 $public_display[ ] = $profileuser->last_name.' '.$profileuser->first_name;261 $public_display['display_displayname'] = $profileuser->display_name; 262 $public_display['display_nickname'] = $profileuser->nickname; 263 $public_display['display_username'] = $profileuser->user_login; 264 $public_display['display_firstname'] = $profileuser->first_name; 265 $public_display['display_firstlast'] = $profileuser->first_name.' '.$profileuser->last_name; 266 $public_display['display_lastfirst'] = $profileuser->last_name.' '.$profileuser->first_name; 254 267 $public_display = array_unique(array_filter(array_map('trim', $public_display))); 255 foreach($public_display as $i tem) {268 foreach($public_display as $id => $item) { 256 269 ?> 257 <option value="<?php echo $item; ?>"><?php echo $item; ?></option>270 <option id="<?php echo $id; ?>" value="<?php echo $item; ?>"><?php echo $item; ?></option> 258 271 <?php 259 272 }
Note: See TracChangeset
for help on using the changeset viewer.