Skip to:
Content

BuddyPress.org

Changeset 5793


Ignore:
Timestamp:
02/15/2012 08:49:23 PM (9 years ago)
Author:
boonebgorges
Message:

Skip check for profiledata when saving visibility level (this was a remnant of an earlier implementation). See #3695

File:
1 edited

Legend:

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

    r5792 r5793  
    261261function xprofile_set_field_visibility_level( $field_id = 0, $user_id = 0, $visibility_level = '' ) {
    262262    if ( empty( $field_id ) || empty( $user_id ) || empty( $visibility_level ) ) {
    263         return false;
    264     }
    265    
    266     // Get the fielddata id
    267     $fielddata_id = BP_XProfile_ProfileData::get_fielddataid_byid( $field_id, $user_id );
    268    
    269     if ( empty( $fielddata_id ) ) {
    270263        return false;
    271264    }
Note: See TracChangeset for help on using the changeset viewer.