Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/21/2014 07:22:35 PM (10 years ago)
Author:
djpaul
Message:

xProfile: re-instate profile field option delete button.

It was accidentally removed in the 2.0 release during the xProfile Field Types re-implementation.
Fixes #5647, props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bp-xprofile/bp-xprofile-classes.php

    r8653 r8657  
    28382838                            <input type="<?php echo esc_attr( $control_type ); ?>" name="<?php echo esc_attr( "isDefault_{$type}_option{$default_name}" ); ?>" <?php checked( $options[$i]->is_default_option, true ); ?> value="<?php echo esc_attr( $j ); ?>" />
    28392839                            <span><?php _e( 'Default Value', 'buddypress' ); ?></span>
     2840                            <a href="<?php echo esc_url( 'users.php?page=bp-profile-setup&amp;mode=delete_option&amp;option_id=' . $options[$i]->id ); ?>" class="ajax-option-delete" id="delete-<?php echo esc_attr( $options[$i]->id ); ?>">[x]</a>
    28402841                        </p>
    28412842                    <?php endfor; ?>
Note: See TracChangeset for help on using the changeset viewer.