[buddypress-trac] [BuddyPress] #2170: Function bp_get_the_topic_poster_name() incorrectly returns “Deleted User”

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Mar 11 03:54:31 UTC 2010

#2170: Function bp_get_the_topic_poster_name() incorrectly returns “Deleted User”
Reporter:  foxly                                                       |       Owner:       
    Type:  defect                                                      |      Status:  new  
Priority:  major                                                       |   Milestone:  1.2.3
Keywords:  bp_get_the_topic_poster_name(), bp_the_topic_poster_name()  |  
 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

 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.

Ticket URL: <http://trac.buddypress.org/ticket/2170>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list