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

get_permalink() fails inside get_acf_post() when $acfpost is empty #87

Closed
visahakkarainen opened this Issue Oct 3, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@visahakkarainen

visahakkarainen commented Oct 3, 2018

https://github.com/devgeniem/dustpress/blob/master/classes/query.php#L134

get_permalink fails when $acfpost is empty. This might happen when id is still found from database but the actual post is deleted (e.g. relation field might still have this data).

https://github.com/devgeniem/dustpress/blob/master/classes/query.php#L104
get_post() won't find anything if the post is deleted.

villesiltala added a commit that referenced this issue Oct 3, 2018

@villesiltala

This comment has been minimized.

Show comment
Hide comment
@villesiltala

villesiltala Oct 3, 2018

Member

Will be fixed in: #88

Member

villesiltala commented Oct 3, 2018

Will be fixed in: #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment