PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.29
Booktics – Appointment Booking Calendar for Service Businesses v1.0.29
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | core/onboard/controllers/onboard-controller.php +3 -3 1.0.13 → 1.0.29 View file →
@@ -130,9 +130,9 @@
130 130 // Verify email status using external API
131 131 $isValidEmail = $this->verify_email_status( $email );
132 132
133 133
134 - if ( $isValidEmail !== true ) {
134 + if ( true !== $isValidEmail ) {
135 135 return $this->error( __( 'Email address could not be verified as valid.', 'booktics' ) );
136 136 }
137 137
138 138 // Prepare webhook call
@@ -140,10 +140,10 @@
140 140 $body = [ 'email' => $email ];
141 141 $webhook_response = wp_remote_post( $webhook_url, [ 'body' => $body ] );
142 142
143 143 if ( is_wp_error( $webhook_response ) ) {
144 - if ( function_exists( 'error_log' ) ) {
145 - error_log( 'FluentCRM webhook error: ' . $webhook_response->get_error_message() );
144 + if ( function_exists( 'error_log' ) && defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
145 + error_log( 'FluentCRM webhook error: ' . $webhook_response->get_error_message() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
146 146 }
147 147 return $this->error( $webhook_response->get_error_message() );
148 148 }
149 149