Fix bg process api endpoint. return all users processes

This commit is contained in:
leogermani 2019-10-28 10:12:22 -03:00
parent c79fd88970
commit 9a0d65219c
1 changed files with 14 additions and 14 deletions

View File

@ -155,7 +155,7 @@ class REST_Background_Processes_Controller extends REST_Controller {
$user_q = $wpdb->prepare("AND user_id = %d", $request['user_id']);
}
if ( isset($user_q['all_users']) && $user_q['all_users'] ) {
if ( isset($request['all_users']) && $request['all_users'] ) {
$user_q = "";
}
}