PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | includes/admin/class-charitable-admin-support.php +19 -18 1.7.0.11 → 1.8.13 View file →
@@ -3,9 +3,9 @@
3 3 * Contains the class that is used for dedicated troubleshooting/support.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Admin_Support
6 6 * @author David Bisset
7 - * @copyright Copyright (c) 2022, WP Charitable LLC
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.7.0.3
10 10 * @version 1.0
11 11 */
@@ -37,9 +37,8 @@
37 37 * @since 1.4.6
38 38 * @since 1.5.4 Access changed to public.
39 39 */
40 40 public function __construct() {
41 -
42 41 }
43 42
44 43 /**
45 44 * Checks and sees if there is anything being manually passed into the query vars.
@@ -44,28 +43,31 @@
44 43 /**
45 44 * Checks and sees if there is anything being manually passed into the query vars.
46 45 *
47 46 * @since 1.7.0.3
48 - *
47 + * @version 1.8.9.1
49 48 */
50 49 public static function maybe_do_charitable_support_query() {
51 - if ( ! is_admin() || ! isset( $_GET[ 'charitable-support' ] ) ) {
52 - return;
53 - }
50 + // phpcs:disable WordPress.Security.NonceVerification.Recommended
51 + if ( ! is_admin() || ! isset( $_GET['charitable-support'] ) ) {
52 + return;
53 + }
54 54
55 - switch ( esc_html( $_GET[ 'charitable-support' ] ) ) {
56 - case 'clear-notifications':
57 - delete_option( 'charitable_notifications' ); // delete the entire option in the database
58 - if ( defined( 'CHARITABLE_DEBUG' ) && CHARITABLE_DEBUG ) {
59 - error_log( 'charitable-support: clear-notification' );
60 - }
61 - break;
55 + $support_action = sanitize_text_field( wp_unslash( $_GET['charitable-support'] ) );
56 + // phpcs:enable WordPress.Security.NonceVerification.Recommended
62 57
63 - default:
64 - # code...
65 - break;
66 - }
58 + switch ( $support_action ) {
59 + case 'clear-notifications':
60 + delete_option( 'charitable_notifications' ); // delete the entire option in the database.
61 + if ( charitable_is_debug() ) {
62 + error_log( 'charitable-support: clear-notification' ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
63 + }
64 + break;
67 65
66 + default:
67 + // code...
68 + break;
69 + }
68 70 }
69 71
70 72 /**
71 73 * Returns and/or create the single instance of this class.
@@ -80,8 +82,7 @@
80 82 }
81 83
82 84 return self::$instance;
83 85 }
84 -
85 86 }
86 87
87 88 endif;