Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

gchtr
Copy link
Member

@gchtr gchtr commented Aug 27, 2024

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.

drzraf and others added 4 commits August 1, 2024 17:26
This code-path can't be override (contrary to checks done by the Timmy\Image constructor.
Be it for usage with custom-post-type or subclassing attachment, or any other plugin edge-case, this check would be better left to a place it can be skipped/made optional.
@gchtr gchtr changed the title fix: Remove check for attachment post type that can’t be overriden feat: Remove check for attachment post type that can’t be overridden Aug 30, 2024
@gchtr gchtr merged commit 13574be into 2.x Aug 30, 2024
30 checks passed
@gchtr gchtr deleted the 2.x-attachment-check branch August 30, 2024 07:05
This was referenced Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants