Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2010 01:22:21 PM (14 years ago)
Author:
djpaul
Message:

Correct handling of default xprofile radio button selection. Fixes #2694, props jond (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r3369 r3377  
    411411                    }
    412412
    413                     if ( $option_value == $options[$k]->name || $value == $options[$k]->name || $options[$k]->is_default_option ) {
     413                    if ( $option_value == $options[$k]->name || $value == $options[$k]->name || ( empty( $option_value ) && $options[$k]->is_default_option ) ) {
    414414                        $selected = ' checked="checked"';
    415415                    } else {
Note: See TracChangeset for help on using the changeset viewer.