Ticket #1344: 1344.diff
File 1344.diff, 1.1 KB (added by , 9 years ago) |
---|
-
wordpress.org/public_html/style/trac/wp-trac.js
40 40 41 41 gardenerKeywordList = [ 'commit', 'early', 'i18n-change', 'good-first-bug' ]; 42 42 43 reservedTerms = [ 44 'access', 'deprecated', 'global', 'ignore', 'internal', 'link', 'method', 45 'package', 'return','see', 'since', 'subpackage', 'todo', 'type', 'var' 46 ]; 47 43 48 wpTrac = { 44 49 45 50 gardener: typeof wpBugGardener !== 'undefined', … … 92 97 $comment = $( this ).html(); 93 98 if ( mentionsRegEx.test( $comment ) ) { 94 99 $comment = $comment.replace( mentionsRegEx, function( match, username ) { 100 if ( 1 === $.inArray( username, reservedTerms ) ) { 101 return username; 102 } 103 95 104 var meClass = ( username === wpTrac.currentUser ) ? ' me' : ''; 96 105 return ' <a class="mention' + meClass + '" href="https://profiles.wordpress.org/' + username + '">@' + username + '</a>'; 97 106 } );