lib/Post.php
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);
		if ( $this->is_previewing() ) {
			global $wp_query;
			$rev_id = $this->get_post_preview_id($wp_query);
			$customs = $this->get_post_custom($rev_id);
		}
		$post->custom = $customs;
		$post = (object) array_merge((array) $customs, (array) $post);
		return $post;
	}
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);
		if ( $this->is_previewing() ) {
			global $wp_query;
			$rev_id = $this->get_post_preview_id($wp_query);
			$customs = $this->get_post_custom($rev_id);
		}
		$post->custom = $customs;
		$post = (object) array_merge((array) $customs, (array) $post);
		return $post;
	}
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 ) ; if ( $ this -> is_previewing ( ) ) { global $ wp_query ; $ rev_id = $ this -> get_post_preview_id ( $ wp_query ) ; $ customs = $ this -> get_post_custom ( $ rev_id ) ; } $ post -> custom = $ customs ; $ post = ( object ) array_merge ( ( array ) $ customs , ( array ) $ post ) ; return $ post ; }
Used internally by init, etc. to build TimberPost object
@internal
@param  int $pid
@return null|object|WP_Post
Used internally by init etc . to build TimberPost object