Changeset 2968811
- Timestamp:
- 09/19/2023 03:42:55 PM (3 years ago)
- Location:
- clearout-email-validator/trunk
- Files:
-
- 3 edited
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
src/clearout-validator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clearout-email-validator/trunk/plugin.php
r2961086 r2968811 4 4 * Plugin URL: https://developer.wordpress.org/plugins/clearout-email-validator 5 5 * Description: This plugin seamlessly integrated with all major forms to validate the user's given email address in real-time. Under the hood, this plugin use Clearout API to perform 20+ refined validation checks to determine the status of the email address, and thus helps capturing only the valid leads to maintain high quality mailing list. 6 * Version: 3.0. 26 * Version: 3.0.3 7 7 * Author: Clearout.io 8 8 * Author URI: https://clearout.io … … 14 14 15 15 // plugin version. 16 define( 'CLEAROUT_PLUGIN_VERSION', '3.0. 2' );16 define( 'CLEAROUT_PLUGIN_VERSION', '3.0.3' ); 17 17 define( 'CLEAROUT_RESULT_CACHED_TIMEOUT', 3600 ); 18 18 define( 'CLEAROUT_BASE_API_URL', 'https://api.clearout.io/v2/' ); -
clearout-email-validator/trunk/readme.txt
r2961086 r2968811 313 313 = 3.0.2 = 314 314 * Minor Fixes 315 = 3.0.3 = 316 * Gravity Form Fixes -
clearout-email-validator/trunk/src/clearout-validator.php
r2958288 r2968811 320 320 function _get_error_message( $error_status ) { 321 321 $error_message = 'This email address is invalid or not allowed - please check'; 322 switch ( $error_status) {322 switch ($error_status) { 323 323 case 'api_token': 324 324 $message = 'Invalid API Token, please check your API token'; … … 522 522 } 523 523 // do the email validation. 524 $validation_result = _co_email_validation( $value, $clearout_options, $clearout_form_source ); 524 525 // Check if $value is array, because when user has double confirm email enabled, 526 // $value comes as an array, causing our EV to fail 527 $email = $value; 528 if ( is_array( $value ) ) { 529 $email = $value[0]; 530 } 531 $sanitised_email = sanitize_email($email); 532 $validation_result = _co_email_validation( $sanitised_email, $clearout_options, $clearout_form_source ); 525 533 if ( ( is_array( $validation_result ) ) && array_key_exists( 'status', $validation_result ) ) { 526 534 if ( false == $validation_result['status'] ) {
Note: See TracChangeset
for help on using the changeset viewer.