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

WordPress Trac noreply at wordpress.org
Wed Jul 7 00:15:31 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 azaozz):

 Replying to [comment:3 walbo]:

 > Running `npm run build:dev` will revert any changes done in Core.

 Right, unfortunately. BTW why are there PHP files in the JS packages in
 npm? Sounds... somewhat not right (I agree that's another discussion, will
 open a ticket/issue).

 The most straightforward way to fix this seems to be to "decouple" `wp-
 includes/blocks/legacy-widget.php` and stop updating it from npm. Should
 also be removed from the package, but that's a discussion for the
 Gutenberg repo.

 If the intent is to keep Gutenberg working as a plugin "decoupling" seems
 to be the best way forward for all PHP files, not just this one. Also, it
 should follow the basic rule for WP plugins: **always prefix all names**!
 :)

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


More information about the wp-trac mailing list