| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/plugins/jetpack/sal/ |
Upload File : |
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
* This class extends the SAL_Post class, providing the implementation for
* functions that were declared in that SAL_Post class.
*
* @see WPCOM_JSON_API_Post_v1_1_Endpoint in class.wpcom-json-api-post-v1-1-endpoint.php for more context on
* the functions implemented here.
*
* @package automattic/jetpack
*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}
/**
* Base class for Jetpack_Post.
*/
class Jetpack_Post extends SAL_Post {
/**
* Defines a default value for the like counts on a post, if this hasn't been defined yet.
*
* @return int Returns 0.
**/
public function get_like_count() {
return 0;
}
/**
* Defines a default value for whether or not the current user likes this post, if this hasn't been defined yet.
*
* @return bool Returns false
**/
public function is_liked() {
return false;
}
/**
* Defines a default value for whether or not the current user reblogged this post, if this hasn't been defined yet.
*
* @return bool Returns false
**/
public function is_reblogged() {
return false;
}
/**
* Defines a default value for whether or not the current user is following this blog, if this hasn't been defined yet.
*
* @return bool Returns false
**/
public function is_following() {
return false;
}
/**
* Defines the unique WordPress.com-wide representation of a post, if this hasn't been defined yet.
*
* @return string Returns an empty string
**/
public function get_global_id() {
return '';
}
/**
* Defines a default value for whether or not there is gelocation data for this post, if this hasn't been defined yet.
*
* @return bool Returns false
**/
public function get_geo() {
return false;
}
/**
* Returns the avatar URL for a user, or an empty string if there isn't a valid avatar.
*
* @param string $email The user's email.
* @param int $avatar_size The size of the avatar in pixels.
*
* @return string
*/
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;
}
}