Skip to:
Content

BuddyPress.org

Changeset 4939


Ignore:
Timestamp:
08/06/2011 09:33:46 PM (13 years ago)
Author:
djpaul
Message:

Update the site options when xprofile default group or names are changed in xprofile admin. Fixes #3446, props slaFFik

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r4827 r4939  
    213213                $type    = 'success';
    214214
     215                if ( 1 == $group_id )
     216                    bp_update_option( 'bp-xprofile-base-group-name', $group->name );
     217
    215218                do_action( 'xprofile_groups_saved_group', $group );
    216219            }
     
    291294                $message = __( 'The field was saved successfully.', 'buddypress' );
    292295                $type = 'success';
     296
     297                if ( 1 == $field_id )
     298                    bp_update_option( 'bp-xprofile-fullname-field-name', $field->name );
    293299
    294300                unset( $_GET['mode'] );
Note: See TracChangeset for help on using the changeset viewer.