[wp-trac] [WordPress Trac] #53610: Remove references to Gutenberg specific functions

WordPress Trac noreply at wordpress.org
Tue Jul 6 19:33:57 UTC 2021


#53610: Remove references to Gutenberg specific functions
--------------------------+---------------------
 Reporter:  desrosj       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+---------------------

Comment (by hellofromTonya):

 Replying to [comment:3 walbo]:
 > Running `npm run build:dev` will revert any changes done in Core.

 Thanks @walbo! Alrighty, this means the change comes from the packages in
 the Gutenberg repo and are then merged back into Core. However, the code
 is needed in the plugin to allow it to run on other WordPress versions.

 One way to fix it:
 Set and check for `>=` WordPress 5.8 in Gutenberg for the widgets
 functionality. Then `render_block_core_legacy_widget` in the package file
 can be modified to remove the GB-specific code.

 This is likely an upstream discussion.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53610#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list