mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
38 lines
603 B
PHP
38 lines
603 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|