Opened 8 years ago
Closed 8 years ago
#3212 closed defect (bug) (fixed)
bbp_get_author_display_name() should not echo display names
| Reported by: | wpdennis | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | high | Milestone: | 2.6 |
| Component: | Component - Users | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: r6741