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

Javascript race condition when registering wp-views in WP 5.6.1 #822

Open
joeyblake opened this issue Feb 16, 2021 · 0 comments
Open

Javascript race condition when registering wp-views in WP 5.6.1 #822

joeyblake opened this issue Feb 16, 2021 · 0 comments

Comments

@joeyblake
Copy link
Contributor

Using the classic editor, in WordPress 5.6.1, with concatenated scripts enabled, wp-tinymce.js includes the wp-view plugin. wp-tinymce does not wait for jQuery domready, and this causes wp-views to start initializing before shortcake views are registered. This results in existing shortcake shortcodes to not render in the editor on page load.

This can be fixed by moving the shortcode registration out of jQuery domready.

I have a fix for this coming in a few minutes.

joeyblake added a commit to Knucklepuck/shortcake that referenced this issue Feb 16, 2021
…ent view race condition in WP 5.6.1

Fixes issue wp-shortcake#822
Also includes:
Update for node-sass to be compatible with OS X Big Sur
Updating a couple of deprecated jQuery functions
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

1 participant