What problem does this address?
Currently, it's possible to define a PHP function (class) with any prefix.
This repeatedly resulted in fatal errors due to duplicate function names between Core and Gutenberg.
What is your proposed solution?
A new lint rule should be implemented.
It should check that PHP functions/classes with no (G|g)utenberg_ prefix are properly guarded with function_exists() or class_exists().
What problem does this address?
Currently, it's possible to define a PHP function (class) with any prefix.
This repeatedly resulted in fatal errors due to duplicate function names between Core and Gutenberg.
What is your proposed solution?
A new lint rule should be implemented.
It should check that PHP functions/classes with no
(G|g)utenberg_prefix are properly guarded withfunction_exists()orclass_exists().