', '' ), 'wp-members' ); ?>
trim( $_POST['wpmem_captcha_publickey'] ), 'private' => trim( $_POST['wpmem_captcha_privatekey'] ), ); if ( $update_type == 'recaptcha' && isset( $_POST['wpmem_captcha_theme'] ) ) { $new_settings['recaptcha']['theme'] = $_POST['wpmem_captcha_theme']; } } if ( $update_type == 'really_simple' ) { if ( array_key_exists( 'recaptcha', $settings ) ) { // Updating really_simple but need to maintain recaptcha. $new_settings['recaptcha'] = $settings['recaptcha']; } $font_color = $_POST['font_color_r'] . ',' . $_POST['font_color_g'] . ',' . $_POST['font_color_b']; $bg_color = $_POST['bg_color_r'] . ',' . $_POST['bg_color_g'] . ',' . $_POST['bg_color_b']; $new_settings['really_simple'] = array( 'characters' => $_POST['characters'], 'num_char' => $_POST['num_char'], 'dim_w' => $_POST['dim_w'], 'dim_h' => $_POST['dim_h'], 'font_color' => $font_color, 'bg_color' => $bg_color, 'font_size' => $_POST['font_size'], 'kerning' => $_POST['kerning'], 'img_type' => $_POST['img_type'], ); } update_option( 'wpmembers_captcha', $new_settings ); return __( 'CAPTCHA was updated for WP-Members', 'wp-members' ); } // End of file.