[wp-trac] [WordPress Trac] #56794: Add linting for `gutenberg_*` functions

WordPress Trac noreply at wordpress.org
Thu Nov 24 12:47:00 UTC 2022


#56794: Add linting for `gutenberg_*` functions
------------------------------+-------------------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.2
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  coding-standards
------------------------------+-------------------------------

Comment (by Bernhard Reiter):

 Replying to [comment:1 jrf]:
 > We could possibly enable the WPCS `PrefixAllGlobals` sniff for select
 directories in Core ?

 I thought that only supported forcing the presence of a prefix (e.g. for a
 plugin)? We don't really want to mandate that every function in a given
 directory is prefixed with `wp_` (we do allow a few without that in
 Gutenberg blocks) but rather want to ban the `gutenberg_` prefix
 everywhere. Can the `PrefixAllGlobals` sniff do that?

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


More information about the wp-trac mailing list