refactored bulk actions & implemented bulk trash for all listings
This commit is contained in:
@@ -24,7 +24,7 @@ class Router {
|
||||
$class = ucfirst($_POST['endpoint']);
|
||||
$endpoint = __NAMESPACE__ . "\\" . $class;
|
||||
$method = $_POST['method'];
|
||||
$data = isset($_POST['data']) ? $_POST['data'] : array();
|
||||
$data = isset($_POST['data']) ? stripslashes_deep($_POST['data']) : array();
|
||||
$endpoint = new $endpoint();
|
||||
$endpoint->$method($data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user