Changeset 3649
- Timestamp:
- 12/28/2011 06:37:48 PM (12 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-reply-template.php
r3648 r3649 871 871 if ( !bbp_is_reply_anonymous( $reply_id ) ) { 872 872 873 // Get the author ID 874 $author_id = bbp_get_reply_author_id( $reply_id ); 875 873 876 // Try to get a display name 874 $author_name = get_the_author_meta( 'display_name', bbp_get_reply_author_id( $reply_id ));877 $author_name = get_the_author_meta( 'display_name', $author_id ); 875 878 876 879 // Fall back to user login 877 880 if ( empty( $author_name ) ) { 878 $author_name = get_the_author_meta( 'user_login', bbp_get_reply_author_id( $reply_id ));881 $author_name = get_the_author_meta( 'user_login', $author_id ); 879 882 } 880 883 -
branches/plugin/bbp-includes/bbp-topic-template.php
r3648 r3649 1137 1137 if ( !bbp_is_topic_anonymous( $topic_id ) ) { 1138 1138 1139 // Get the author ID 1140 $author_id = bbp_get_topic_author_id( $topic_id ); 1141 1139 1142 // Try to get a display name 1140 $author_name = get_the_author_meta( 'display_name', bbp_get_topic_author_id( $topic_id ));1143 $author_name = get_the_author_meta( 'display_name', $author_id ); 1141 1144 1142 1145 // Fall back to user login 1143 1146 if ( empty( $author_name ) ) { 1144 $author_name = get_the_author_meta( 'user_login', bbp_get_reply_author_id( $topic_id ));1147 $author_name = get_the_author_meta( 'user_login', $author_id ); 1145 1148 } 1146 1149
Note: See TracChangeset
for help on using the changeset viewer.