From 8cce944edda6aa48c819408cb7b1b589ac6f965b Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Tue, 15 Nov 2022 09:19:28 -0700 Subject: [PATCH] Post class fix attributes --- includes/model/class-post.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/model/class-post.php b/includes/model/class-post.php index 302a002..47e2f13 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -15,9 +15,10 @@ class Post { private $attachments; private $tags; private $object_type; - private $deleted; + private $delete; private $updated; private $permalink; + private $replies; public function __construct( $post = null ) { $this->post = \get_post( $post ); @@ -29,10 +30,10 @@ class Post { $this->attachments = $this->generate_attachments(); $this->tags = $this->generate_tags(); $this->object_type = $this->generate_object_type(); - $this->replies = $this->generate_replies(); - $this->updated = $this->generate_updated(); $this->delete = $this->get_deleted(); + $this->updated = $this->generate_updated(); $this->permalink = $this->get_the_permalink(); + $this->replies = $this->generate_replies(); } public function __call( $method, $params ) {