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/utilities/Skin.php +6 -9 1.7.0.14 → 1.8.13 View file →
@@ -32,11 +32,9 @@
32 32 *
33 33 * @param array $args Empty array of args (we will use defaults).
34 34 */
35 35 public function __construct( $args = array() ) {
36 -
37 36 parent::__construct();
38 -
39 37 }
40 38
41 39 /**
42 40 * Set the upgrader object and store it as a property in the parent class.
@@ -45,13 +43,11 @@
45 43 *
46 44 * @param object $upgrader The upgrader object (passed by reference).
47 45 */
48 46 public function set_upgrader( &$upgrader ) {
49 -
50 47 if ( is_object( $upgrader ) ) {
51 48 $this->upgrader =& $upgrader;
52 49 }
53 -
54 50 }
55 51
56 52 /**
57 53 * Set the upgrader result and store it as a property in the parent class.
@@ -60,11 +56,9 @@
60 56 *
61 57 * @param object $result The result of the install process.
62 58 */
63 59 public function set_result( $result ) {
64 -
65 60 $this->result = $result;
66 -
67 61 }
68 62
69 63 /**
70 64 * Empty out the header of its HTML content and only check to see if it has
@@ -95,15 +89,18 @@
95 89 echo wp_json_encode( array( 'error' => __( 'There was an error installing the addon....... Please try again.', 'charitable' ) ) );
96 90 /* log this for API issues */
97 91
98 92 if ( defined( 'CHARITABLE_DEBUG' ) && CHARITABLE_DEBUG ) {
99 - error_log( 'Charitable: There was an error installing the addon' );
100 - error_log( print_r( $errors, true ) );
93 + // phpcs:disable
94 + if ( charitable_is_debug() ) {
95 + error_log( 'Charitable: There was an error installing the addon' );
96 + error_log( print_r( $errors, true ) ); // phpcs:ignore
97 + }
98 + // phpcs:enable
101 99 }
102 100
103 101 die;
104 102 }
105 -
106 103 }
107 104
108 105 /**
109 106 * Empty out the feedback method to prevent outputting HTML strings as the install