Ticket #20747: 20747-2.patch
File 20747-2.patch, 1.6 KB (added by , 12 years ago) |
---|
-
wp-admin/js/user-profile.dev.js
41 41 42 42 if ( select.length ) { 43 43 $('#first_name, #last_name, #nickname').bind( 'blur.user_profile', function() { 44 var current = select.find('option:selected').attr('id'),dub = [],44 var dub = [], 45 45 inputs = { 46 46 display_nickname : $('#nickname').val() || '', 47 47 display_username : $('#user_login').val() || '', … … 54 54 inputs['display_lastfirst'] = inputs.display_lastname + ' ' + inputs.display_firstname; 55 55 } 56 56 57 $('option', select).remove(); 57 $.each( $('option', select), function( i, el ){ 58 dub.push( el.value ); 59 }); 60 58 61 $.each(inputs, function( id, value ) { 59 62 if ( ! value ) 60 63 return; … … 64 67 if ( inputs[id].length && $.inArray( val, dub ) == -1 ) { 65 68 dub.push(val); 66 69 $('<option />', { 67 'id': id, 68 'text': val, 69 'selected': (id == current) 70 'text': val 70 71 }).appendTo( select ); 71 72 } 72 73 }); -
wp-admin/user-edit.php
319 319 320 320 foreach ( $public_display as $id => $item ) { 321 321 ?> 322 <option id="<?php echo $id; ?>"<?php selected( $profileuser->display_name, $item ); ?>><?php echo $item; ?></option>322 <option <?php selected( $profileuser->display_name, $item ); ?>><?php echo $item; ?></option> 323 323 <?php 324 324 } 325 325 ?>