Skip to:
Content

BuddyPress.org

Changeset 3378


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-xprofile/bp-xprofile-templatetags.php

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