Describe the bug
Gallery is not inserted into Block Classic
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The gallery should be in block classic
Desktop (please complete the following information):
Additional context
As addition:
You have the option to activate/install Gutenberg 4.2.0 too in WP 5.0 beta 3.x. In this case inserting the gallery works without problems.
Good find! Testing note: if this is only happening in WP 5.0 betas, we will want to move the issue to https://core.trac.wordpress.org/ (I typically leave them open here for testing/verification first though!).
Trac Ticket: https://core.trac.wordpress.org/ticket/45306
I can't reproduce this anymore. No idea what happened.
Please close issue here, thanks
I am sorry for wasting your time.
It's no problem! It's good to report issues and get a check on them! 馃槉
As I'm working through some of the latest reports, I'm finding that if you were testing 5.0 bleeding edge recently, there could have been a few things out of sync and even the next commit would make a big difference. Issues like this help bring that to the forefront and I appreciate all the reports because they're helping get some of those syncing issues worked out!
For this case, I wanted to get a check on it before closing too. I tested just now with WP 5.0-beta3-43878 and can confirm I was able to insert a gallery into a classic block as you've also noted. 馃憤
Thank you for your time and testing @La-Geek! I like seeing you here. I am happy to help test and sort out issues. There is also a group of testers in #core-test in WordPress Slack if you ever have testing topics you would like to discuss.
I am having this issue with Gutenburg plugin installed and WP version 4.9.8
Getting the following console error with the gallery is added to the classic block:
media-editor.min.js?ver=4.9.8:1 Uncaught TypeError: wp.shortcode is not a constructor
at Object.shortcode (media-editor.min.js?ver=4.9.8:1)
at Object.
at _ (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at m (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at f (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at n.u.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:28)
at n.click (media-views.min.js?ver=4.9.8:2)
at n.click (media-views.min.js?ver=4.9.8:2)
at HTMLButtonElement.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:3)
at HTMLButtonElement.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,underscore,backbone,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-&load[]=ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,quicktags,jquery-ui-tabs,suggest,shortcode,wp-util,wp-pointer,&load[]=wplink,wp-api-request,wp-api,moxiejs,plupload&ver=4.9.8:3)
Most helpful comment
It's no problem! It's good to report issues and get a check on them! 馃槉
As I'm working through some of the latest reports, I'm finding that if you were testing 5.0 bleeding edge recently, there could have been a few things out of sync and even the next commit would make a big difference. Issues like this help bring that to the forefront and I appreciate all the reports because they're helping get some of those syncing issues worked out!
For this case, I wanted to get a check on it before closing too. I tested just now with WP 5.0-beta3-43878 and can confirm I was able to insert a gallery into a classic block as you've also noted. 馃憤
Thank you for your time and testing @La-Geek! I like seeing you here. I am happy to help test and sort out issues. There is also a group of testers in #core-test in WordPress Slack if you ever have testing topics you would like to discuss.