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

WordPress Trac noreply at wordpress.org
Fri Jul 9 15:32:19 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:  needs-testing has-patch  |     Focuses:
-------------------------------------+---------------------

Comment (by jorbin):

 If the packages include PHP that is solely intended to be copied into
 WordPress Core, then I think it's important for that code to follow the
 WordPress standards. WordPress uses either no prefix, or it uses the `wp_`
 prefix. The `gutenberg` prefix should be reserved for the plugin. The only
 time that WordPress core should be referencing functions with the
 gutenberg prefix are when upgrading WordPress should be forcing a
 deactivation of the plugin.

 The committer who is updating code, whether it is auto-added such as here,
 written by themselves, or from someone's patch should be looking for
 things like this and not making updates that add function names that
 aren't in line with core's standards.

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


More information about the wp-trac mailing list