feat(Core): add optimize and complete code

This commit is contained in:
2026-05-17 20:05:15 +03:30
parent aa944bf339
commit 4e60b7efdd
25 changed files with 858 additions and 54 deletions

View File

@@ -131,6 +131,10 @@ class Sodino_Banner_List_Table extends WP_List_Table {
public function process_bulk_action() {
if ('delete' === $this->current_action()) {
if (!current_user_can('manage_options')) {
return;
}
$banner_ids = isset($_POST['banner_ids']) ? array_map('intval', $_POST['banner_ids']) : [];
if (!empty($banner_ids) && check_admin_referer('bulk-' . $this->_args['plural'])) {
foreach ($banner_ids as $id) {