| @@ 1083-1090 (lines=8) @@ | ||
| 1080 | $URL = $user->user_url; |
|
| 1081 | $nice = $user->user_nicename; |
|
| 1082 | } |
|
| 1083 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && ! $is_jetpack ) { |
|
| 1084 | $active_blog = get_active_blog_for_user( $ID ); |
|
| 1085 | $site_id = $active_blog->blog_id; |
|
| 1086 | $profile_URL = "http://en.gravatar.com/{$login}"; |
|
| 1087 | } else { |
|
| 1088 | $profile_URL = 'http://en.gravatar.com/' . md5( strtolower( trim( $email ) ) ); |
|
| 1089 | $site_id = -1; |
|
| 1090 | } |
|
| 1091 | ||
| 1092 | $avatar_URL = $this->api->get_avatar_url( $email ); |
|
| 1093 | } |
|
| @@ 464-471 (lines=8) @@ | ||
| 461 | } |
|
| 462 | ||
| 463 | // TODO factor this out |
|
| 464 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
| 465 | $active_blog = get_active_blog_for_user( $user->ID ); |
|
| 466 | $site_id = $active_blog->get_id(); |
|
| 467 | $profile_URL = "http://en.gravatar.com/{$user->user_login}"; |
|
| 468 | } else { |
|
| 469 | $profile_URL = 'http://en.gravatar.com/' . md5( strtolower( trim( $user->user_email ) ) ); |
|
| 470 | $site_id = -1; |
|
| 471 | } |
|
| 472 | ||
| 473 | $author = array( |
|
| 474 | 'ID' => (int) $user->ID, |
|