Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.
Updated: Comment #0
Problem/Motivation
There are two 'name' case's in comment_tokens() in core/modules/comment/comment.tokens.inc
Proposed resolution
remove the first - since the second is better because getAuthorName() does the anonymous stuff
Remaining tasks
- (novice) make patch https://drupal.org/contributor-tasks/create-patch
- review https://drupal.org/contributor-tasks/review
User interface changes
No.
API changes
No.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2203853-comment-token-1.patch | 849 bytes | sidharthap |
Comments
Comment #1
sidharthapHere is the patch.
Comment #2
longwavePatch looks good, though the comment above the duplicate mentions #920056: [comment:name] duplicates [comment:author], and the latter should use format_username() and it looks like the patch there also solves this issue.
Comment #3
webchickThat one is still hanging out as NR, and this one has been RTBC for a bit, so I think it's good to get this in.
Committed and pushed to 8.x. Thanks! Nice catch!