Skip to:
Content

BuddyPress.org

Changeset 8651


Ignore:
Timestamp:
07/20/2014 07:45:27 PM (10 years ago)
Author:
djpaul
Message:

xProfile admin: correctly stripslash data for children field options. (branch)

This was a regression introduced 2.0 with the profile field types rewrite.
Fixes #5704, props imath

File:
1 edited

Legend:

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

    r8346 r8651  
    28312831                        <p class="sortable">
    28322832                            <span>&nbsp;&Xi;&nbsp;</span>
    2833                             <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 ); ?>" />
     2833                            <input type="text" name="<?php echo esc_attr( "{$type}_option[{$j}]" ); ?>" id="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" value="<?php echo esc_attr( stripslashes( $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>
Note: See TracChangeset for help on using the changeset viewer.