protected function get_info($pid)
{
$post = $this->prepare_post_info($pid);
if (!isset($post->post_status)) {
return null;
}
do_action_ref_array('the_post', array(&$post, &$GLOBALS['wp_query']));
$post->status = $post->post_status;
$post->id = $post->ID;
$post->slug = $post->post_name;
$customs = $this->get_post_custom($post->ID);
$post->custom = $customs;
$post = (object) array_merge((array) $customs, (array) $post);
return $post;
}