Changeset 2803
- Timestamp:
- 01/14/2011 02:42:23 AM (15 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 3 edited
-
bbp-reply-functions.php (modified) (1 diff)
-
bbp-topic-functions.php (modified) (1 diff)
-
bbp-user-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-reply-functions.php
r2790 r2803 61 61 $reply_author = 0; 62 62 63 if ( ! is_wp_error( $bbp->errors) )63 if ( !empty( $anonymous_data ) && is_array( $anonymous_data ) ) 64 64 bbp_set_current_anonymous_user_data( $anonymous_data ); 65 65 } -
branches/plugin/bbp-includes/bbp-topic-functions.php
r2790 r2803 62 62 $topic_author = 0; 63 63 64 if ( ! is_wp_error( $bbp->errors) )64 if ( !empty( $anonymous_data ) && is_array( $anonymous_data ) ) 65 65 bbp_set_current_anonymous_user_data( $anonymous_data ); 66 66 } -
branches/plugin/bbp-includes/bbp-user-template.php
r2758 r2803 405 405 * @param int $size Size of the avatar. Defaults to 40 406 406 * @uses bbp_get_current_user_id() To get the current user id 407 * @uses bbp_get_current_anonymous_user_data() To get the current 408 * anonymous user's email 407 409 * @uses get_avatar() To get the avatar 408 410 * @uses apply_filters() Calls 'bbp_get_current_user_avatar' with the … … 411 413 */ 412 414 function bbp_get_current_user_avatar( $size = 40 ) { 413 return apply_filters( 'bbp_get_current_user_avatar', get_avatar( bbp_get_current_user_id(), $size ), $size ); 415 416 if ( !$user = bbp_get_current_user_id() ) 417 $user = bbp_get_current_anonymous_user_data( 'email' ); 418 419 return apply_filters( 'bbp_get_current_user_avatar', get_avatar( $user, $size ), $size ); 414 420 } 415 421
Note: See TracChangeset
for help on using the changeset viewer.