Changeset 8089
- Timestamp:
- 01/17/2019 02:46:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r8055 r8089 808 808 $( $( '.change .username' ).get().reverse() ).each( function() { 809 809 var username = $(this).data( 'username' ); 810 811 // Override the username with the nicename if it differs by more than just case (ie. spaces, etc) 812 if ( 813 $(this).data( 'nicename' ) && 814 username.toLowerCase() != $(this).data( 'nicename' ).toLowerCase() && 815 wpTrac.currentUser !== username 816 ) { 817 username = $(this).data( 'nicename' ); 818 } 819 810 820 if ( 811 821 typeof username !== 'undefined' && … … 813 823 -1 === $.inArray( username, exclude ) 814 824 ) { 815 users.push( $(this).data( 'username' ));825 users.push( username ); 816 826 } 817 827 }); … … 819 829 // Add ticket reporter. 820 830 var ticketReporter = $.trim( $( '#ticket td[headers="h_reporter"]' ).text() ); 831 var ticketReporterNicename = $( '#ticket td[headers="h_reporter"] a' ).data( 'nicename' ); 832 // Override the username with the nicename if it differs by more than just case (ie. spaces, etc) 833 if ( 834 ticketReporter && 835 ticketReporterNicename && 836 ticketReporter !== wpTrac.currentUser && 837 ticketReporter.toLowerCase() !== ticketReporterNicename.toLowerCase() 838 ) { 839 ticketReporter = ticketReporterNicename; 840 } 841 821 842 if ( ticketReporter && -1 === $.inArray( ticketReporter, users ) ) { 822 843 users.push( ticketReporter );
Note: See TracChangeset
for help on using the changeset viewer.