Plugin Directory

Changeset 3473196


Ignore:
Timestamp:
03/03/2026 02:19:43 AM (4 weeks ago)
Author:
mailboxvalidator
Message:

Fixed PHP warning for undefined array key.

Location:
mailboxvalidator-email-validator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mailboxvalidator-email-validator/trunk/mailboxvalidator-email-validator.php

    r3416881 r3473196  
    44Plugin URL:   https://developer.wordpress.org/plugins/mailboxvalidator-email-validator
    55Description:  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.7.1
     6Version:      1.7.2
    77Author:       MailboxValidator
    88Author URI:   https://mailboxvalidator.com
     
    1515
    1616// Defined plugin version.
    17 define( 'MBV_PLUGIN_VER', '1.7.1' );
     17define( 'MBV_PLUGIN_VER', '1.7.2' );
    1818
    1919// Need to include because some plugin called is_email in front end.
     
    988988        $email_parts = explode( '@', $email );
    989989       
    990         if ( $mbv_options['trusted_domains'] !== '' ) {
     990        if ( ! empty( $mbv_options['trusted_domains'] ) ) {
    991991            $trusted_domains_array = explode( ';', $mbv_options['trusted_domains'] );
    992992            if ( ( isset( $email_parts[1] ) ) && ( in_array( $email_parts[1], $trusted_domains_array ) ) ) {
     
    998998       
    999999        // First check the domain blacklisted list, if the domain is in the list, straight return false
    1000         if ( $mbv_options['blacklisted_domains'] !== '' ) {
     1000        if ( ! empty( $mbv_options['blacklisted_domains'] ) ) {
    10011001            $blacklisted_domains_array = explode( ';', $mbv_options['blacklisted_domains'] );
    10021002           
  • mailboxvalidator-email-validator/trunk/readme.txt

    r3416881 r3473196  
    9595== Changelog ==
    9696
     97= 1.7.2 =
     98* Fixed PHP warning for undefined array key.
     99
    97100= 1.7.1 =
    98101* Tested up to WordPress 6.9.
Note: See TracChangeset for help on using the changeset viewer.