Post class fix attributes
This commit is contained in:
parent
1ef6fc21c1
commit
8cce944edd
1 changed files with 4 additions and 3 deletions
|
@ -15,9 +15,10 @@ class Post {
|
||||||
private $attachments;
|
private $attachments;
|
||||||
private $tags;
|
private $tags;
|
||||||
private $object_type;
|
private $object_type;
|
||||||
private $deleted;
|
private $delete;
|
||||||
private $updated;
|
private $updated;
|
||||||
private $permalink;
|
private $permalink;
|
||||||
|
private $replies;
|
||||||
|
|
||||||
public function __construct( $post = null ) {
|
public function __construct( $post = null ) {
|
||||||
$this->post = \get_post( $post );
|
$this->post = \get_post( $post );
|
||||||
|
@ -29,10 +30,10 @@ class Post {
|
||||||
$this->attachments = $this->generate_attachments();
|
$this->attachments = $this->generate_attachments();
|
||||||
$this->tags = $this->generate_tags();
|
$this->tags = $this->generate_tags();
|
||||||
$this->object_type = $this->generate_object_type();
|
$this->object_type = $this->generate_object_type();
|
||||||
$this->replies = $this->generate_replies();
|
|
||||||
$this->updated = $this->generate_updated();
|
|
||||||
$this->delete = $this->get_deleted();
|
$this->delete = $this->get_deleted();
|
||||||
|
$this->updated = $this->generate_updated();
|
||||||
$this->permalink = $this->get_the_permalink();
|
$this->permalink = $this->get_the_permalink();
|
||||||
|
$this->replies = $this->generate_replies();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __call( $method, $params ) {
|
public function __call( $method, $params ) {
|
||||||
|
|
Loading…
Reference in a new issue