Changeset 6526
- Timestamp:
- 02/02/2018 04:50:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r6501 r6526 514 514 }, 515 515 516 // capital_P_dangit() 517 $( '#propertyform' ).on( 'submit', function() { 518 var $summary = $( '#field-summary' ), 519 $description = $( '#field-description' ), 520 $comment = $( '#comment' ); 521 522 // Simple replacement for ticket summary. 523 $summary.val( $summary.val().replace( 'Wordpress', 'WordPress' ) ); 524 525 // Use the more judicious replacement for ticket description and comments. 526 $.each( [ ' Wordpress', '‘Wordpress', '“Wordpress', '>Wordpress', '(Wordpress' ], function( index, value ) { 527 var replacement = value.replace( 'Wordpress', 'WordPress' ); 528 529 $description.val( $description.val().replace( value, replacement ) ); 530 $comment.val( $comment.val().replace( value, replacement ) ); 531 } ); 532 } ); 533 516 534 // If we're not dealing with a trusted bug gardener: 517 535 nonGardeners: function() {
Note: See TracChangeset
for help on using the changeset viewer.