Centralizes widget logic in one place

Cleans up code
This commit is contained in:
Vlad
2017-12-09 19:43:29 -05:00
parent 1f9c956637
commit d13aa67a07
3 changed files with 193 additions and 218 deletions

View File

@ -115,8 +115,7 @@ class Initializer {
}
function setupWidget() {
$widget = new Widget($this->renderer);
$widget->init();
register_widget('\MailPoet\Form\Widget');
}
function initialize() {