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.
In comment.module, there is a preprocess function which incorrectly sets the class of a link as a string. Should be an array. This was exposed when I wrote a custom module to handle comment_uri differently.
The attached patch fixes the bug by wrapping the "permalink" into an array.
Comment | File | Size | Author |
---|---|---|---|
#8 | comment-permalink-class-1027936-8.patch | 734 bytes | webflo |
Comments
Comment #2
nicholasThompsonOk - trying again against HEAD, at it appears there is no DRUPAL-7--1 branch yet... and the bug still exists in HEAD.
Comment #3
nicholasThompsonNeed review
Comment #4
dixon_Comment #5
webflo CreditAttribution: webflo commentedRe-roll against 8.x-dev.
Comment #6
Wim Leers5: comment-permalink-class-1027936-5.patch queued for re-testing.
Comment #8
webflo CreditAttribution: webflo commentedRe-roll.
Comment #9
Wim LeersI'd almost award the trivial patch of the month award :)
RTBC!
Comment #10
xjm8: comment-permalink-class-1027936-8.patch queued for re-testing.
Comment #11
catchCommitted/pushed to 8.x, thanks!
Comment #12
David_Rothstein CreditAttribution: David_Rothstein commentedNeeds backport, but there's more discussion at #1200478: Changing the comment path to the node path triggers a PHP fatal error in l() due to wrongly structured options (which also considered tests).
One or the other issue should probably be closed.
Comment #13
pounardNote that there is working patches there! All there is to do is to grab and commit them (might need reroll though).
Comment #14
pounardIssue is opened there since 2011 and I'm personally experiencing it on two projects since 2012, it's more than ever time to commit this fix, it's sad being forced to use a patch on all projects for such a trivial fix and old bug.
Comment #15
drummLet's go with #1200478: Changing the comment path to the node path triggers a PHP fatal error in l() due to wrongly structured options.