wordpress/php-fpm/wordpress_files/plugins/jetpack/sal/class.json-api-post-jetpack.php

38 lines
603 B
PHP
Raw Permalink Normal View History

2020-05-22 03:40:23 +02:00
<?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;
}
}