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/addons/class-charitable-addons.php +14 -6 1.6.7 → 1.8.13 View file →
@@ -2,10 +2,10 @@
2 2 /**
3 3 * Class to load addon functionality.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Addons
6 - * @author Eric Daams
7 - * @copyright Copyright (c) 2018, Studio 164a
6 + * @author David Bisset
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.0.0
10 10 * @version 1.0.0
11 11 */
@@ -10,9 +10,11 @@
10 10 * @version 1.0.0
11 11 */
12 12
13 13 // Exit if accessed directly.
14 -if ( ! defined( 'ABSPATH' ) ) { exit; }
14 +if ( ! defined( 'ABSPATH' ) ) {
15 + exit;
16 +}
15 17
16 18 if ( ! class_exists( 'Charitable_Addons' ) ) :
17 19
18 20 /**
@@ -22,9 +24,9 @@
22 24 */
23 25 class Charitable_Addons {
24 26
25 27 /**
26 - * Load addons. This is executed before the charitable_start hook
28 + * Load addons. This is executed before the charitable_start hook
27 29 * to allow addons to hook into that.
28 30 *
29 31 * @since 1.0.0
30 32 *
@@ -43,9 +45,9 @@
43 45 * Create class object.
44 46 *
45 47 * @since 1.0.0
46 48 */
47 - private function __construct() {
49 + private function __construct() {
48 50 add_action( 'charitable_activate_addon', array( $this, 'activate_addon' ) );
49 51 add_action( 'after_setup_theme', array( $this, 'load_addons' ) );
50 52
51 53 do_action( 'charitable_addons_start', $this );
@@ -53,9 +55,9 @@
53 55
54 56 /**
55 57 * Activate an addon.
56 58 *
57 - * This is programatically called on the charitable_activate_addon hook,
59 + * This is programatically called on the charitable_activate_addon hook,
58 60 * triggered by a plugin.
59 61 *
60 62 * @since 1.0.0
61 63 *
@@ -105,8 +107,14 @@
105 107
106 108 $this->load_addon_dependencies();
107 109
108 110 foreach ( $active_addons as $addon ) {
111 +
112 + //todo: resolve an unknown PHP Notice.
113 + if ( $addon === 'charitable-user-dashboard' ) {
114 + continue;
115 + }
116 +
109 117 $filepath = $this->get_validated_addon_filepath( $addon );
110 118
111 119 /* If we cannot read the file, bounce back with an error. */
112 120 if ( false === $filepath ) {