blob: fc283fc2a12927305c333943eebe661bf038fe34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
class Jetpack_Post extends SAL_Post {
public function get_like_count() {
return 0;
}
public function is_liked() {
return false;
}
public function is_reblogged() {
return false;
}
public function is_following() {
return false;
}
public function get_global_id() {
return '';
}
public function get_geo() {
return false;
}
protected function get_avatar_url( $email, $avatar_size = 96 ) {
$avatar_url = get_avatar_url( $email, array(
'size' => $avatar_size,
) );
if ( ! $avatar_url || is_wp_error( $avatar_url ) ) {
return '';
}
return $avatar_url;
}
}
|