Unit tests fixed + models & routers update

This commit is contained in:
Jonathan Labreuille
2016-02-04 11:41:05 +01:00
parent 12c9623e2f
commit c2cb88f995
18 changed files with 148 additions and 154 deletions

View File

@@ -12,7 +12,6 @@ class Widget {
$this->registerWidget();
if(!is_admin()) {
//$this->setupActions();
$this->setupDependencies();
} else {
$this->setupAdminDependencies();
@@ -69,6 +68,9 @@ class Widget {
}
}
// TODO: extract this method into an Initializer
// - the "ajax" part might probably be useless
// - the "post" (non-ajax) part needs to be redone properly
function setupActions() {
// ajax requests
add_action(