← All changes
|
includes/admin/settings/wppm_reset_ap_individual_task.php
+30
-30
6.0.2
→
6.0.6
View file →
| @@ -1,31 +1,31 @@ | ||
| 1 | -<?php | |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; // Exit if accessed directly | |
| 4 | -} | |
| 5 | - | |
| 6 | -global $current_user,$wpdb,$wppmfunction; | |
| 7 | - | |
| 8 | -if (!($current_user->ID && $current_user->has_cap('manage_options') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) { | |
| 9 | - exit; | |
| 10 | -} | |
| 11 | -if ( check_ajax_referer( 'wppm_reset_ap_individual_task', '_ajax_nonce', false ) != 1 ) { | |
| 12 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 13 | -} | |
| 14 | -update_option( | |
| 15 | - 'wppm-ap-individual-task', | |
| 16 | - array( | |
| 17 | - 'comment-primary-color' => '#000000', | |
| 18 | - 'comment-secondary-color' => '#4e4e4e', | |
| 19 | - 'comment-date-color' => '#a8aeb5', | |
| 20 | - 'comment-date-hover-color' => '#000000', | |
| 21 | - 'comment-send-btn-bg-color' => '#5067c5', | |
| 22 | - 'comment-send-btn-color' => '#ffffff', | |
| 23 | - 'widget-header-bg-color' => '#ffffff', | |
| 24 | - 'widget-header-text-color' => '#2C3E50', | |
| 25 | - 'widget-body-bg-color' => '#ffffff', | |
| 26 | - 'widget-body-label-color' => '#9c9c9c', | |
| 27 | - 'widget-body-text-color' => '#2C3E50', | |
| 28 | - ) | |
| 29 | -); | |
| 30 | -wp_die(); | |
| 1 | +<?php | |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | + exit; // Exit if accessed directly | |
| 4 | +} | |
| 5 | + | |
| 6 | +global $current_user,$wpdb,$wppmfunction; | |
| 7 | + | |
| 8 | +if (!($current_user->ID && $current_user->has_cap('manage_options') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) { | |
| 9 | + exit; | |
| 10 | +} | |
| 11 | +if ( check_ajax_referer( 'wppm_reset_ap_individual_task', '_ajax_nonce', false ) != 1 ) { | |
| 12 | + wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 13 | +} | |
| 14 | +update_option( | |
| 15 | + 'wppm-ap-individual-task', | |
| 16 | + array( | |
| 17 | + 'comment-primary-color' => '#000000', | |
| 18 | + 'comment-secondary-color' => '#4e4e4e', | |
| 19 | + 'comment-date-color' => '#a8aeb5', | |
| 20 | + 'comment-date-hover-color' => '#000000', | |
| 21 | + 'comment-send-btn-bg-color' => '#5067c5', | |
| 22 | + 'comment-send-btn-color' => '#ffffff', | |
| 23 | + 'widget-header-bg-color' => '#ffffff', | |
| 24 | + 'widget-header-text-color' => '#2C3E50', | |
| 25 | + 'widget-body-bg-color' => '#ffffff', | |
| 26 | + 'widget-body-label-color' => '#9c9c9c', | |
| 27 | + 'widget-body-text-color' => '#2C3E50', | |
| 28 | + ) | |
| 29 | +); | |
| 30 | +wp_die(); | |
| 31 | 31 | ?> |