Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/07/2015 12:38:10 AM (10 years ago)
Author:
boonebgorges
Message:

Process is_default_option properly in xprofile_insert_field() and BP_XProfile_Field::save().

Previously, it was being ignored, which meant there was no way to change
is_default_option within the API.

Fixes #6137.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r9625 r9710  
    284284    }
    285285
    286     if ( ! empty( $r['is_default_option'] ) ) {
    287         $field->is_default_option = $r['is_default_option'];
    288     }
     286    $field->is_default_option = (bool) $r['is_default_option'];
    289287
    290288    if ( ! empty( $r['option_order'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.