protected function _get_related_post_data_for_post($post_id, $position, $origin)
{
$post = get_post($post_id);
return array('id' => $post->ID, 'url' => get_permalink($post->ID), 'url_meta' => array('origin' => $origin, 'position' => $position), 'title' => $this->_to_utf8($this->_get_title($post->post_title, $post->post_content)), 'date' => get_the_date('', $post->ID), 'format' => get_post_format($post->ID), 'excerpt' => html_entity_decode($this->_to_utf8($this->_get_excerpt($post->post_excerpt, $post->post_content)), ENT_QUOTES, 'UTF-8'), 'rel' => apply_filters('jetpack_relatedposts_filter_post_link_rel', 'nofollow', $post->ID), 'context' => apply_filters('jetpack_relatedposts_filter_post_context', $this->_to_utf8($this->_generate_related_post_context($post->ID)), $post->ID), 'img' => $this->_generate_related_post_image_params($post->ID), 'classes' => apply_filters('jetpack_relatedposts_filter_post_css_classes', array(), $post->ID));
}