Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2170 closed defect (bug) (fixed)

Function bp_get_the_topic_poster_name() incorrectly returns “Deleted User”

Reported by: foxly's profile foxly Owned by:
Milestone: 1.2.3 Priority: major
Severity: Version:
Component: Keywords: bp_get_the_topic_poster_name(), bp_the_topic_poster_name()
Cc:

Description

The function bp_get_the_topic_poster_name() is supposed to return the name of a user that created a forum topic, while the program execution is within the “while ( bp_forum_topics() ) : bp_the_forum_topic();” loop.

If the user has been deleted but their forum topic still exists, the function is supposed to return “Deleted User”.

However, bp_get_the_topic_poster_name() and its related function bp_the_topic_poster_name() return the string “Deleted User” regardless of whether the user exists or not. This makes the function useless, as it doesn’t return meaningful data.

To replicate the problem:

On a default buddypress installation with the default theme selected, add
<?php bp_the_topic_poster_name() ?> at line 42 in /forums/forums-loop.php. Create some forum posts, then navigate to any forum listing page.

The text “Deleted User” will be displayed in every listing, even though all of the posters are still active members; demonstrating the defect in the function.

IMPORTANT: There is no documentation for this function in the buddypress source code or on the buddypress website. (Forum posts are not an acceptable form of documentation as they often contain outdated or incorrect information)

Please consider releasing properly documented source code.

Change History (1)

#1 @apeatling
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2837]) Fixes #2170

Note: See TracTickets for help on using tickets.