Skip to content

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

@joeyblake

Description

@joeyblake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions