REQUEST-PROPOSAL: get_comment_author @ comment-template.php (1 post)

  1. djstelios
    Posted 5 years ago #

    The administrator should select what will appear as comment author (nickname, display name, full name) for registered users.
    This feature is very useful for "closed" blogs requiring to be registered in order to post comments.

    At this case the check at get_comment_author should be something like the following:

    if (!empty($comment->user_id)) {
        $author=$user->display_name; // or whatever the admin selects
      } else {
        if ( empty($comment->comment_author) ) {
          $author = __('Anonymous');
        } else {
          $author = $comment->comment_author;
      return apply_filters('get_comment_author', $author);

Topic Closed

This topic has been closed to new replies.

About this Topic