← All changes
|
admin/advanced-settings/includes/fields/capitalize-first-last.php
+4
-1
3.9.6
→
4.0.3
View file →
| @@ -1,9 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +// Exit if accessed directly | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) exit; | |
| 5 | + | |
| 3 | 6 | $wppb_general_settings = get_option( 'wppb_general_settings' ); |
| 4 | 7 | |
| 5 | -if ( isset( $wppb_general_settings ) && $wppb_general_settings['emailConfirmation'] == 'yes' ) | |
| 8 | +if ( !empty( $wppb_general_settings ) && isset( $wppb_general_settings['emailConfirmation'] ) && $wppb_general_settings['emailConfirmation'] == 'yes' ) | |
| 6 | 9 | add_filter('wppb_add_to_user_signup_form_meta', 'wppb_toolbox_capitalize_first_last', 20, 2); |
| 7 | 10 | else |
| 8 | 11 | add_filter('wppb_build_userdata', 'wppb_toolbox_capitalize_first_last', 20, 2); |
| 9 | 12 | |