Navigation Menu

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't verify posts that don't exist #107

Conversation

jeremyfelt
Copy link
Contributor

If 0 is passed to verify_post_type() and a global post object is not available, then immediately return false.

This caused a warning when viewing the media library. Introduced in 54d017c 馃帀 .

If `0` is passed to `verify_post_type()` and a global post object
is not available, then immediately return `false`.
@jeremyfelt jeremyfelt merged commit 92c9522 into wp-document-revisions:master Nov 9, 2017
@jeremyfelt jeremyfelt deleted the fix-no-post-error branch November 9, 2017 16:26
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.

None yet

2 participants