• Send mail to <myemail@mydomain.com> if new reply/topic? Ever | Spam only | Disable -> this field is not working properly.

    Since <option> tags do not have a “value” attribute, the option is saved literally as “Ever”, “Spam only” and “Disable”, however they should be “ever”, “spam” and “off”.

    The fix is quite simple, just change these lines in file wp-content/plugins/bbpress-antispam/bbpress-antispam.php:

    L648-652:

    FROM:

    <select id="bbpress_antispam_cfg_sendmail" name="bbpress_antispam_cfg_sendmail">
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail' ) == 'ever' ); ?>><?php _e( 'Ever', 'bbpress-antispam' ); ?></option>
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail' ) == 'spam' ); ?>><?php _e( 'Spam only', 'bbpress-antispam' ); ?></option>
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail', 'off' ) == 'off' ); ?>><?php _e( 'Disable', 'bbpress-antispam' ); ?></option>
            </select>

    TO:

    <select id="bbpress_antispam_cfg_sendmail" name="bbpress_antispam_cfg_sendmail">
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail' ) == 'ever' ); ?> value="ever"><?php _e( 'Ever', 'bbpress-antispam' ); ?></option>
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail' ) == 'spam' ); ?> value="spam"><?php _e( 'Spam only', 'bbpress-antispam' ); ?></option>
                <option <?php selected( get_option( 'bbpress_antispam_cfg_sendmail', 'off' ) == 'off' ); ?> value="off"><?php _e( 'Disable', 'bbpress-antispam' ); ?></option>
            </select>

    Let’s hope the plugin author adds this fix to the code, for the time being I’m just patching the file as shown above.

    https://wordpress.org/plugins/bbpress-antispam/

  • The topic ‘"Send mail" field not saving options Ever, Spam, Disable’ is closed to new replies.