Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2013 06:50:43 PM (11 years ago)
Author:
boonebgorges
Message:

Allow admin-set field visibility default to override when user hasn't set a value yet

Fixes #5262

Props dcavins

File:
1 edited

Legend:

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

    r7469 r7609  
    753753        // If the admin has forbidden custom visibility levels for this field, replace
    754754        // the user-provided setting with the default specified by the admin
    755         if ( isset( $defaults['allow_custom'] ) && isset( $defaults['default'] ) && 'disabled' == $defaults['allow_custom'] && isset( $user_visibility_levels[$d_field_id] ) ) {
     755        if ( isset( $defaults['allow_custom'] ) && isset( $defaults['default'] ) && 'disabled' == $defaults['allow_custom'] ) {
    756756            $user_visibility_levels[$d_field_id] = $defaults['default'];
    757757        }
Note: See TracChangeset for help on using the changeset viewer.