- Adds new ConflictResolver class

- Executes URL query parameter conflict resolver action in Router class
- Adds unit tests
This commit is contained in:
Vlad
2017-01-11 09:22:52 -05:00
parent 131f12d19e
commit 4196d35e35
5 changed files with 51 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Router {
if(!method_exists($endpoint, $this->action) || !in_array($this->action, $endpoint->allowed_actions)) {
return $this->terminateRequest(self::RESPONSE_ERROR, __('Invalid router endpoint action.', 'mailpoet'));
}
do_action('mailpoet_conflict_url_query_parameters');
return call_user_func(
array(
$endpoint,