← All changes
|
includes/admin/tasks/wppm_get_bulk_delete_task.php
+30
-30
5.0.2
→
6.0.6
View file →
| @@ -1,30 +1,30 @@ | ||
| 1 | -<?php | |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; // Exit if accessed directly | |
| 4 | -} | |
| 5 | -global $wpdb,$wppmfunction,$current_user; | |
| 6 | -$task_ids = isset($_POST['task_ids']) ? $wppmfunction->sanitize_array($_POST['task_ids']) : '' ; | |
| 7 | -$wppm_users_role = get_option('wppm_user_role'); | |
| 8 | -ob_start(); | |
| 9 | -?> | |
| 10 | -<form id="frm_delete_bulk_tasks"> | |
| 11 | - <div class="form-group"> | |
| 12 | - <p><?php echo esc_html_e('Are you sure to delete these tasks?','taskbuilder');?></p> | |
| 13 | - </div> | |
| 14 | - <input type="hidden" name="action" value="wppm_set_delete_bulk_tasks" /> | |
| 15 | - <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('wppm_set_delete_bulk_tasks')?>"> | |
| 16 | - <input type="hidden" id="wppm_task_ids" name="task_ids" value="<?php echo esc_attr( implode( ',', $task_ids ) ); ?>" /> | |
| 17 | -</form> | |
| 18 | -<?php | |
| 19 | -$body = ob_get_clean(); | |
| 20 | -ob_start(); | |
| 21 | -?> | |
| 22 | -<button type="button" class="btn wppm_task_popup_close" onclick="wppm_task_modal_close();"><?php echo esc_html_e('Cancel','taskbuilder');?></button> | |
| 23 | -<button type="button" class="btn wppm_task_popup_action" onclick="wppm_set_delete_bulk_tasks();"><?php echo esc_html_e('Confirm','taskbuilder');?></button> | |
| 24 | -<?php | |
| 25 | -$footer = ob_get_clean(); | |
| 26 | -$response = array( | |
| 27 | - 'body' => $body, | |
| 28 | - 'footer' => $footer | |
| 29 | -); | |
| 30 | -echo json_encode($response); | |
| 1 | +<?php | |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | + exit; // Exit if accessed directly | |
| 4 | +} | |
| 5 | +global $wpdb,$wppmfunction,$current_user; | |
| 6 | +$task_ids = isset($_POST['task_ids']) ? $wppmfunction->sanitize_array($_POST['task_ids']) : '' ; | |
| 7 | +$wppm_users_role = get_option('wppm_user_role'); | |
| 8 | +ob_start(); | |
| 9 | +?> | |
| 10 | +<form id="frm_delete_bulk_tasks"> | |
| 11 | + <div class="form-group"> | |
| 12 | + <p><?php echo esc_html_e('Are you sure to delete these tasks?','taskbuilder');?></p> | |
| 13 | + </div> | |
| 14 | + <input type="hidden" name="action" value="wppm_set_delete_bulk_tasks" /> | |
| 15 | + <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr(wp_create_nonce('wppm_set_delete_bulk_tasks'))?>"> | |
| 16 | + <input type="hidden" id="wppm_task_ids" name="task_ids" value="<?php echo esc_attr( implode( ',', $task_ids ) ); ?>" /> | |
| 17 | +</form> | |
| 18 | +<?php | |
| 19 | +$body = ob_get_clean(); | |
| 20 | +ob_start(); | |
| 21 | +?> | |
| 22 | +<button type="button" class="btn wppm_task_popup_close" onclick="wppm_task_modal_close();"><?php echo esc_html_e('Cancel','taskbuilder');?></button> | |
| 23 | +<button type="button" class="btn wppm_task_popup_action" onclick="wppm_set_delete_bulk_tasks();"><?php echo esc_html_e('Confirm','taskbuilder');?></button> | |
| 24 | +<?php | |
| 25 | +$footer = ob_get_clean(); | |
| 26 | +$response = array( | |
| 27 | + 'body' => $body, | |
| 28 | + 'footer' => $footer | |
| 29 | +); | |
| 30 | +echo wp_json_encode($response); | |