Making WordPress.org

Changeset 3069


Ignore:
Timestamp:
05/03/2016 12:51:58 PM (9 years ago)
Author:
ocean90
Message:

Slack: Fix missing author for ticket description changes.

See #838.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/comment-handler.php

    r2025 r3069  
    9595        array_pop( $lines );
    9696
    97         preg_match( '/^(Comment|Changes) \(by (.*)\):$/', array_shift( $lines ), $matches );
     97        preg_match( '/^(Comment|Changes|Description changed) \(?by (.*)\)?:$/', array_shift( $lines ), $matches );
    9898        $has_changes = $matches[1] === 'Changes';
    9999        $author = $matches[2];
    100100
    101         // Remove blank line after 'Comment|Changes (by author):'
     101        // Remove blank line after 'Comment|Changes (by author):' or 'Description changed by author:'.
    102102        array_shift( $lines );
    103103
Note: See TracChangeset for help on using the changeset viewer.