getblocklab / block-lab

A WordPress Admin interface and a simple templating system for building custom Gutenberg blocks.
https://getblocklab.com
GNU General Public License v2.0
415 stars 63 forks source link

Replace globals $block_lab_attributes and $block_lab_config #425

Closed kienstra closed 5 years ago

kienstra commented 5 years ago

The globals $block_lab_attributes and $block_lab_config are used in the class Loader and in helpers.php.

It'd be best to not use globals, and instead move them into an OOP structure.

At the moment, there aren't any references to those globals, when searching WordPress plugins for them on https://wpdirectory.net/

If we're going to replace them, it'd be good to do that soon, before other plugins or themes use them.

kienstra commented 5 years ago

Ah, it looks like this issue is a duplicate of #240