Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/03/2021 08:05:19 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 trunk for 2.7.0. See #3386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/settings.php

    r7088 r7179  
    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.