sitecrafting / conifer

:evergreen_tree: A powerful WordPress library plugin for OO development
https://www.coniferplug.in
MIT License
18 stars 2 forks source link

Update Post::create to initialize instances the way Timber 2.0 expects #144

Closed sdunham closed 3 years ago

sdunham commented 3 years ago

https://github.com/sitecrafting/conifer/blob/ed2f07db2c8ff0769218df5f71ee0f835f9f4870/lib/Conifer/Post/Post.php#L360

Post::create initializes the posts is creates by instantiating the class directly, but Timber 2.0 expects you to use Timber::get_post

acobster commented 3 years ago

already fixed in the timber-2.x branch/PR.