Skip to:
Content

BuddyPress.org

Changeset 8650


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

xProfile admin: correctly stripslash data for children field options.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-classes.php

    r8643 r8650  
    30363036                        <div id="<?php echo esc_attr( "{$type}_div{$j}" ); ?>" class="bp-option sortable">
    30373037                            <span class="bp-option-icon grabber"></span>
    3038                             <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 ); ?>" />
     3038                            <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 ) ); ?>" />
    30393039                            <label>
    30403040                                <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 ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.