Skip to content

Fix: TypeError: window.WPDocumentRevisions is undefined#348

Merged
benbalter merged 1 commit intowp-document-revisions:mainfrom
earthlingdavey:EarthlingDavey-patch-1
May 28, 2024
Merged

Fix: TypeError: window.WPDocumentRevisions is undefined#348
benbalter merged 1 commit intowp-document-revisions:mainfrom
earthlingdavey:EarthlingDavey-patch-1

Conversation

@earthlingdavey
Copy link
Copy Markdown
Contributor

This PR fixes an error that I've seen where the following error is returned.

TypeError: Cannot read properties of undefined (reading 'bindPostDocumentUploadCB')
    at HTMLDocument.<anonymous> (VM5802 media-upload.php:3:33)

To reproduce the error.

  • Open console in browser
  • Create a new document
  • Click Upload new version.
  • You will see the error is logged.

This PR fixes an error that I've seen where the following error is returned.

```
TypeError: Cannot read properties of undefined (reading 'bindPostDocumentUploadCB')
    at HTMLDocument.<anonymous> (VM5802 media-upload.php:3:33)
```

To reproduce the error. 

- Open console in browser
- Create a new document
- Click Upload new version.
- You will see the error is logged.
Copy link
Copy Markdown
Collaborator

@benbalter benbalter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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