get_remote_post() public method

public get_remote_post ( WP_Post $source_post, integer $blog_id ) : WP_Post
$source_post WP_Post
$blog_id integer
return WP_Post
 /**
  *
  * @wp-hook mlp_translation_meta_box_registered
  *
  * @param WP_Post $post
  * @param int     $blog_id
  *
  * @return void
  */
 public function register_metabox_view_details(WP_Post $post, $blog_id)
 {
     // get the current remote post status
     $remote_post = $this->basic_data->get_remote_post($post, $blog_id);
     $is_trashed = isset($remote_post->post_status) && $remote_post->post_status == 'trash';
     // set the base
     $base = 'mlp_translation_meta_box_';
     // check if the remote post is trashed
     // if it is so, show the warning
     if ($is_trashed) {
         add_action($base . 'top_' . $blog_id, array($this->view, 'show_trashed_message'), 10, 3);
         return;
     }
     // add the actions if the remote is not trashed
     add_action($base . 'top_' . $blog_id, array($this->view, 'blog_id_input'), 10, 3);
     if (post_type_supports($post->post_type, 'title')) {
         add_action($base . 'top_' . $blog_id, array($this->view, 'show_title'), 10, 3);
     }
     add_action($base . 'top_' . $blog_id, array($this->view, 'show_name'), 10, 3);
     if (post_type_supports($post->post_type, 'editor')) {
         add_action($base . 'main_' . $blog_id, array($this->view, 'show_editor'), 10, 3);
     } else {
         remove_action('media_buttons', array($this->view, 'show_copy_button'), 20);
     }
     if (post_type_supports($post->post_type, 'excerpt')) {
         add_action($base . 'main_' . $blog_id, array($this->view, 'show_excerpt'), 10, 3);
     }
     if (post_type_supports($post->post_type, 'thumbnail')) {
         add_action($base . 'main_' . $blog_id, array($this->view, 'show_thumbnail_checkbox'), 11, 3);
     }
     $taxonomies = get_object_taxonomies($post, 'objects');
     if (!empty($taxonomies)) {
         add_action($base . 'bottom_' . $blog_id, array($this->view, 'show_taxonomies'), 10, 3);
     }
 }