Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why the hell would $posts be an instance of a single Post, I ask you?…
… Why? *blows brains out*
- Loading branch information
3fedf50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/habari/system/blob/master/classes/posts.php#L102 and https://github.com/habari/system/blob/master/classes/posts.php#L841 and ask that question again.
3fedf50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it shouldn't be... If it's going to be a single post it should be in $post, that's where I would expect it. $posts should still be an array with only the one post in it. Whether or not that means the underlying Posts class should change or not, I don't know... that's just how I expect the API in Theme to work when fetching them.
3fedf50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't disagree with you.