[buddypress-trac] [BuddyPress] #1260: bp_user_fullname and bp_displayed_user_fullname are inside out
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Tue Oct 20 09:14:53 UTC 2009
#1260: bp_user_fullname and bp_displayed_user_fullname are inside out
-------------------------+--------------------------------------------------
Reporter: CyberSliver | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Keywords: templatetags |
-------------------------+--------------------------------------------------
Current trunk has:
{{{
#!php
1205 function bp_user_fullname() {
1206 global $bp;
1207 echo apply_filters( 'bp_user_fullname',
$bp->displayed_user->fullname );
1208 }
1209 function bp_displayed_user_fullname() {
1210 return bp_user_fullname();
1211 }
}}}
bp_user_fullname echoes as expected, but bp_displayed_user_fullname will
return nothing.
This should of course be:
{{{
#!php
1205 function bp_user_fullname() {
1206 echo bp_displayed_user_fullname();
1207 }
1208 function bp_displayed_user_fullname() {
1209 global $bp;
1210 return apply_filters( 'bp_user_fullname',
$bp->displayed_user->fullname );
1211 }
}}}
For consistency, shouldn't they be called bp_displayed_user_fullname and
bp_get_displayed_user_fullname?
--
Ticket URL: <http://trac.buddypress.org/ticket/1260>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list