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

Add a check for post type #14

Merged
merged 1 commit into from
Feb 12, 2019
Merged

Add a check for post type #14

merged 1 commit into from
Feb 12, 2019

Conversation

jarosz
Copy link
Contributor

@jarosz jarosz commented Feb 11, 2019

Fixing issue #10 made this plugin to return guid for every type of post.

My theme sometimes make a fallback to ID:1 which leads to errors, because this ID should return null for get_attached_file(), but it doesn't.

This is my fix.

@zzxiang zzxiang merged commit f218d47 into zzxiang:master Feb 12, 2019
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