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

Regression: Classic Block: can no longer insert shortcodes #14436

Closed
ellatrix opened this issue Mar 14, 2019 · 0 comments · Fixed by #14485
Closed

Regression: Classic Block: can no longer insert shortcodes #14436

ellatrix opened this issue Mar 14, 2019 · 0 comments · Fixed by #14485
Labels
[Feature] Shortcodes Related to shortcode functionality npm Packages Related to npm packages [Type] Build Tooling Issues or PRs related to build tooling [Type] Regression Related to a regression in the latest release

Comments

@ellatrix
Copy link
Member

Describe the bug

I get an error when inserting a gallery or embed. Example: copy a youtube URL and paste it in a classic block.

It looks like wp.shortcode can no longer be called. Did something change with Webpack maybe?

This works fine in WordPress 5.1.

Uncaught TypeError: wp.shortcode is not a constructor
    at Object.shortcode (media-editor.min.js?ver=5.1:1)
    at Object.<anonymous> (media-editor.min.js?ver=5.1:1)
    at s (backbone.min.js?ver=1.2.3:1)
    at r (backbone.min.js?ver=1.2.3:1)
    at m (backbone.min.js?ver=1.2.3:1)
    at N.d.k.trigger (backbone.min.js?ver=1.2.3:1)
    at N.d.click (media-views.min.js?ver=5.1:2)
    at N.d.click (media-views.min.js?ver=5.1:2)
    at HTMLButtonElement.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1:3)
    at HTMLButtonElement.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1:3)
@ellatrix ellatrix added [Type] Regression Related to a regression in the latest release [Type] Build Tooling Issues or PRs related to build tooling [Feature] Shortcodes Related to shortcode functionality npm Packages Related to npm packages labels Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Shortcodes Related to shortcode functionality npm Packages Related to npm packages [Type] Build Tooling Issues or PRs related to build tooling [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant