Skip to:
Content

BuddyPress.org

Ticket #5647: 5647.patch

File 5647.patch, 1.1 KB (added by imath, 11 years ago)
  • src/bp-xprofile/bp-xprofile-classes.php

    diff --git src/bp-xprofile/bp-xprofile-classes.php src/bp-xprofile/bp-xprofile-classes.php
    index 522bb45..5c72800 100644
    abstract class BP_XProfile_Field_Type { 
    28332833                                                        <input type="text" name="<?php echo esc_attr( "{$type}_option[{$j}]" ); ?>" id="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" value="<?php echo esc_attr( $options[$i]->name ); ?>" />
    28342834                                                        <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 ); ?>" />
    28352835                                                        <span><?php _e( 'Default Value', 'buddypress' ); ?></span>
     2836                                                        <?php if ( -1 !== $options[$i]->id ): ?>
     2837                                                                <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>
     2838                                                        <?php endif ;?>
    28362839                                                </p>
    28372840                                        <?php endfor; ?>
    28382841