Prevent WP users from being trashed/deleted

- return actual rowCount of affected rows for bulk actions (based on PDO last statement)
- prevent removal of WP Users segment relationship with subscribers.
This commit is contained in:
Jonathan Labreuille
2016-05-20 16:58:02 +02:00
parent 15a21e5745
commit c4ddb38d18
3 changed files with 82 additions and 36 deletions

View File

@ -124,7 +124,8 @@ class Model extends \Sudzy\ValidModel {
}
}
return $total;
$last_statement = $orm->get_last_statement();
return $last_statement->rowCount();
}
function duplicate($data = array()) {