mindkomm / timmy

Advanced image handling for Timber.
MIT License
171 stars 13 forks source link

feat: Remove check for attachment post type that can’t be overridden #85

Closed gchtr closed 1 month ago

gchtr commented 1 month ago

Ticket

This pull request removes a check that requires that an ID passed to Timmy::get_image() has be a WordPress post with an attachment post type. Instead, it now only checks if it is a WordPress post.

This allows developers to work with post types that work the same as attachments, but don’t have attachment as post type.