[buddypress-trac] [BuddyPress] #4083: bp_forums_get_post_extras(): login and nicename are swapped
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Mar 15 19:16:05 UTC 2012
#4083: bp_forums_get_post_extras(): login and nicename are swapped
--------------------------+-----------------------------
Reporter: wpdennis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Forums | Version:
Severity: normal | Keywords: dev-feedback
--------------------------+-----------------------------
In function "bp_forums_get_post_extras" the user details are loaded. But
login and nicename are swapped:
{{{
$posts[$i]->poster_email = $poster->user_email;
$posts[$i]->poster_login = $poster->user_nicename;
$posts[$i]->poster_nicename = $poster->user_login;
$posts[$i]->poster_name = $poster->display_name;
}}}
It should be:
{{{
$posts[$i]->poster_email = $poster->user_email;
$posts[$i]->poster_login = $poster->user_login;
$posts[$i]->poster_nicename = $poster->user_nicename;
$posts[$i]->poster_name = $poster->display_name;
}}}
The function is defined in bp-forums-functions.php:
http://buddypress.trac.wordpress.org/browser/tags/1.5.4/bp-forums/bp-
forums-functions.php#L545
BTW: In function "bp_forums_get_topic_extras" it is set correctly. Please
have a look:
http://buddypress.trac.wordpress.org/browser/tags/1.5.4/bp-forums/bp-
forums-functions.php#L404
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4083>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list