Skip to:
Content

bbPress.org

Changeset 7180


Ignore:
Timestamp:
01/03/2021 08:06:03 AM (4 years ago)
Author:
johnjamesjacoby
Message:

Replies: allow zero value bbp_get_form_option().

This commit specifically re-allows for infinite editing of topics and replies to work as intended. Previous to this, it was impossible to retrieve a "0" value, even though the setting description claims that it is possible and it would be saved correctly in the database.

In branches/2.6 for 2.6.7. Fixes #3386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/admin/settings.php

    r7089 r7180  
    19891989        }
    19901990
    1991         // Fallback to default
    1992         if ( empty( $value ) ) {
     1991        // Fallback to default, unless numeric (allow zero)
     1992        if ( empty( $value ) && ! is_numeric( $value ) ) {
    19931993            $value = $default;
    19941994        }
Note: See TracChangeset for help on using the changeset viewer.