Opened 7 years ago
Closed 7 years ago
#3212 closed defect (bug) (fixed)
bbp_get_author_display_name() should not echo display names
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | high |
Severity: | normal | Version: | |
Component: | Component - Users | Keywords: | commit |
Cc: |
Description
bbp_get_author_display_name() calls bbp_current_anonymous_user_data( 'name' ):
<?php function bbp_get_author_display_name( $post_id = 0 ) { ... } else { $retval = bbp_current_anonymous_user_data( 'name' ); }
It should call bbp_get_current_anonymous_user_data( 'name' ) instead.
Same in bbp_get_author_email():
<?php function bbp_get_author_email( $post_id = 0 ) { ... // Not an edit, so rely on current user cookie data } else { $retval = bbp_current_anonymous_user_data( 'email' ); }
I marked this ticket as "high" because it echos the values in the middle of the form destroying the HTML structure.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Related: r6741