Changeset 3024853
- Timestamp:
- 01/22/2024 03:20:09 AM (2 years ago)
- Location:
- mailboxvalidator-email-validator/trunk
- Files:
-
- 2 edited
-
mailboxvalidator-email-validator.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mailboxvalidator-email-validator/trunk/mailboxvalidator-email-validator.php
r2996124 r3024853 4 4 Plugin URL: https://developer.wordpress.org/plugins/mailboxvalidator-email-validator 5 5 Description: This plugin enables you to block invalid, disposable, free or role-based email from registering for your service. This plugin has been tested successfully to support WooCommerce, JetPack, Contact Form 7, Formidable forms and many more. 6 Version: 1.6. 06 Version: 1.6.1 7 7 Author: MailboxValidator 8 8 Author URI: https://mailboxvalidator.com … … 15 15 16 16 // Defined plugin version. 17 define( 'MBV_PLUGIN_VER', '1.6. 0' );17 define( 'MBV_PLUGIN_VER', '1.6.1' ); 18 18 19 19 // Need to include because some plugin called is_email in front end. … … 967 967 $mbv_options = get_option( 'mbv_email_validator' ); 968 968 969 $mbv_options['api_key'] = trim($mbv_options['api_key']); 970 969 971 $admin_email = $this->mbv_get_admin_email(); 970 972 … … 985 987 986 988 // if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) ) { 987 if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) ) { 989 // if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) ) { 990 if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) && (filter_var(trim($email), FILTER_VALIDATE_EMAIL)) && (preg_match('/^[A-Z\d]+$/', $mbv_options['api_key'])) ) { 988 991 // do the email validation 989 992 990 $validation_result = $this->mbv_email_validation( $email, $mbv_options );993 $validation_result = $this->mbv_email_validation( trim($email), $mbv_options ); 991 994 992 995 if ( ( is_array( $validation_result ) ) && array_key_exists( 'status', $validation_result ) ) { -
mailboxvalidator-email-validator/trunk/readme.txt
r2996124 r3024853 4 4 Tags: email checker, email validation, form validation, email verify, email filter, disposable email, free email, role-based email, spam blocking, email validator 5 5 Tested up to: 6.4.1 6 Stable tag: 1.6. 06 Stable tag: 1.6.1 7 7 8 8 Email verification for WordPress forms. Block disposable, block spam, block invalid email, block free email and role-based email. … … 95 95 == Changelog == 96 96 97 = 1.6.1 = 98 * Add new checking to prevent the abuse of the API. 99 97 100 = 1.6.0 = 98 101 * Update to use v2 for MailboxValidator API through MailboxValiator PHP SDK, and tested with WordPress 6.4.1.
Note: See TracChangeset
for help on using the changeset viewer.