Changeset 1993
- Timestamp:
- 10/18/2015 07:33:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r1990 r1993 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 … … 93 98 if ( mentionsRegEx.test( $comment ) ) { 94 99 $comment = $comment.replace( mentionsRegEx, function( match, username ) { 100 if ( -1 !== $.inArray( username, reservedTerms ) ) { 101 return match; 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>';
Note: See TracChangeset
for help on using the changeset viewer.