Skip to:
Content

BuddyPress.org

Changeset 9345


Ignore:
Timestamp:
01/11/2015 09:35:12 PM (5 years ago)
Author:
r-a-y
Message:

Core: Do not use array_unique() in bp_get_form_field_attributes().

array_unique() merged the id and name fields when the form values
were identical, which is way wrong and broke the saving of certain
xprofile fields.

Props hnla. Anti-props r-a-y.

See #5914.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r9329 r9345  
    558558         */
    559559        $attributes = (array) apply_filters( 'bp_get_form_field_attributes', $attributes, $name );
    560 
    561         $attributes = array_unique( $attributes );
    562560
    563561        foreach( $attributes as $attr => $value ) {
Note: See TracChangeset for help on using the changeset viewer.