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

Attachment files not added #751

Open
parhom opened this issue Mar 25, 2024 · 1 comment
Open

Attachment files not added #751

parhom opened this issue Mar 25, 2024 · 1 comment

Comments

@parhom
Copy link

parhom commented Mar 25, 2024

Attachment files not added in /docs/create/ when WooCommerce plugin active
Screenshot_21

@dcavins
Copy link
Collaborator

dcavins commented Mar 25, 2024

At first glance, it looks like WooCommerce is steamrolling the wp.media object. The uploader isn't working well in my test environment without WooCommerce, either, though (WP 6.4.3, BP Docs 2.2.3, Twenty Twenty-One). If I select one item, it hangs, and when I select a second item, both are uploaded, which is new. They do upload successfully. But I can't upload just one item.

Though with WP6.4 I'm also seeing lots of errors on properties of the wp object, in i18n, ally, and common that only come into play on the edit screen, so it's possible that we need to generally take another look at the TinyMCE editor, to see if the method to invoke it has changed again. (Other than in the attachments JS file, we don't directly use the wp JS object, so I'm guessing that it's editor related.) Rolling back to WP6.3 resolves all of these issues, whether WooCommerce is enabled or not.

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

No branches or pull requests

2 participants