@@ 469-476 (lines=8) @@ | ||
466 | } |
|
467 | ||
468 | // TODO factor this out |
|
469 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
470 | $active_blog = get_active_blog_for_user( $user->ID ); |
|
471 | $site_id = $active_blog->get_id(); |
|
472 | $profile_URL = "http://en.gravatar.com/{$user->user_login}"; |
|
473 | } else { |
|
474 | $profile_URL = 'http://en.gravatar.com/' . md5( strtolower( trim( $user->user_email ) ) ); |
|
475 | $site_id = -1; |
|
476 | } |
|
477 | ||
478 | $author = array( |
|
479 | 'ID' => (int) $user->ID, |
@@ 1096-1103 (lines=8) @@ | ||
1093 | $URL = $user->user_url; |
|
1094 | $nice = $user->user_nicename; |
|
1095 | } |
|
1096 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM && ! $is_jetpack ) { |
|
1097 | $active_blog = get_active_blog_for_user( $ID ); |
|
1098 | $site_id = $active_blog->blog_id; |
|
1099 | $profile_URL = "https://en.gravatar.com/{$login}"; |
|
1100 | } else { |
|
1101 | $profile_URL = 'https://en.gravatar.com/' . md5( strtolower( trim( $email ) ) ); |
|
1102 | $site_id = -1; |
|
1103 | } |
|
1104 | ||
1105 | $avatar_URL = $this->api->get_avatar_url( $email ); |
|
1106 | } |