Skip to content

Verify a post ID has been passed before verifying post type#86

Merged
benbalter merged 1 commit intowp-document-revisions:masterfrom
washingtonstateuniversity:bug-no-post-id
Mar 7, 2016
Merged

Verify a post ID has been passed before verifying post type#86
benbalter merged 1 commit intowp-document-revisions:masterfrom
washingtonstateuniversity:bug-no-post-id

Conversation

@jeremyfelt
Copy link
Contributor

When a file is uploaded directly to the media library in grid view, rather than as an attachment, $_POST['post_id'] is not available and will generate an error in the AJAX response. We can assume that if post ID is not available, this is not a document.

When a file is uploaded directly to the media library in grid view,
rather than as an attachment, `$_POST['post_id']` is not available
and will generate an error in the AJAX response. We can assume that
if post ID is not available, this is not a document.
benbalter added a commit that referenced this pull request Mar 7, 2016
Verify a post ID has been passed before verifying post type
@benbalter benbalter merged commit 5c9d889 into wp-document-revisions:master Mar 7, 2016
@jeremyfelt jeremyfelt deleted the bug-no-post-id branch October 25, 2017 20:21
benbalter pushed a commit that referenced this pull request May 21, 2025
Merge pull request #361 from NeilWJames/main
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

Comments