Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/22/2014 02:45:43 PM (8 years ago)
Author:
djpaul
Message:

xProfile: remove references to unused $value variable when rendering radio button field options.

It was accidentally introduced back in r3300.

File:
1 edited

Legend:

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

    r7960 r7962  
    580580                    $selected        = '';
    581581
    582                     // @todo $value is never created
    583                     if ( $option_value == $allowed_options || !empty( $value ) && $value == $allowed_options || ( empty( $option_value ) && !empty( $options[$k]->is_default_option ) ) )
     582                    if ( $option_value == $allowed_options || ( empty( $option_value ) && !empty( $options[$k]->is_default_option ) ) )
    584583                        $selected = ' checked="checked"';
    585584
     
    611610                        $allowed_options = xprofile_sanitize_data_value_before_save( $options[$k]->name, false, false );
    612611
    613                         // @todo $value is never created
    614612                        if ( $option_values[$j] == $allowed_options || @in_array( $allowed_options, $option_values ) ) {
    615613                            $selected = ' checked="checked"';
Note: See TracChangeset for help on using the changeset viewer.