Styling fix

This commit is contained in:
moon 2022-04-15 06:50:04 -07:00
parent 7ae6f3e584
commit c3ad996eb2
1 changed files with 24 additions and 22 deletions

View File

@ -28,12 +28,14 @@ add_filter(
return $response; return $response;
} }
$route = $request->get_route(); $route = $request->get_route();
$filters = array_filter( $filters, function( $filter ) use ( $request, $route ) { $filters = array_filter(
$filters, function ( $filter ) use ( $request, $route ) {
if ($filter['enabled'] && $filter['endpoint'] == $route ) { if ($filter['enabled'] && $filter['endpoint'] == $route ) {
return true; return true;
} }
return false; return false;
}); }
);
$data = $response->get_data(); $data = $response->get_data();