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.
See subject.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_warning_theme_realname-2211881-1.patch | 1.7 KB | Anybody |
Comments
Comment #1
AnybodyI can confirm the problem still exists in the latest .dev.
Here is further information to fix this issue:
The function that creates this problem can be found in plugins/content_types/author_pane.inc, Linke 27:
The problem behind seems to be that realname does not even implement any theme function called "realname" in the current Drupal 7 version, so this simply seems useless?
Proposed solution:
The correct solution is to remove the realname module check completely and simply use format_username() in a check_plain as described here: https://api.drupal.org/api/drupal/includes!common.inc/function/format_us...
That api function handles everything correctly.
To sum it up this is the corrected function tested and ready for your review:
Comment #2
AnybodyPatch attached, ready for review.
Comment #3
AnybodyPlease review and let's get this committed. :)
Comment #4
thomas.frobieterThank you! Works great for me. Allright from my side :)