Ticket #6342: 6342.01.patch
File 6342.01.patch, 2.2 KB (added by , 10 years ago) |
---|
-
src/bp-xprofile/bp-xprofile-loader.php
117 117 $this->field_types[] = 'option'; 118 118 119 119 // Register the visibility levels. See bp_xprofile_get_visibility_levels() to filter 120 $this->visibility_levels = array( 121 'public' => array( 122 'id' => 'public', 123 'label' => _x( 'Everyone', 'Visibility level setting', 'buddypress' ) 124 ), 125 'adminsonly' => array( 126 'id' => 'adminsonly', 127 'label' => _x( 'Only Me', 'Visibility level setting', 'buddypress' ) 128 ), 129 'loggedin' => array( 130 'id' => 'loggedin', 131 'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' ) 132 ) 120 // Public/Everyone 121 $this->visibility_levels['public'] = array( 122 'id' => 'public', 123 'label' => _x( 'Public', 'Visibility level setting', 'buddypress' ), 124 'description' => _x( 'Visibile to everyone', 'Visibility level setting', 'buddypress' ) 133 125 ); 134 126 127 // Only logged in members 128 $this->visibility_levels['loggedin'] = array( 129 'id' => 'loggedin', 130 'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' ), 131 'description' => _x( 'Visibile to all logged in members', 'Visibility level setting', 'buddypress' ) 132 ); 133 134 // Only friends 135 135 if ( bp_is_active( 'friends' ) ) { 136 136 $this->visibility_levels['friends'] = array( 137 'id' => 'friends', 138 'label' => _x( 'My Friends', 'Visibility level setting', 'buddypress' ) 137 'id' => 'friends', 138 'label' => _x( 'Only Friends', 'Visibility level setting', 'buddypress' ), 139 'description' => _x( 'Visibile only to confirmed friends', 'Visibility level setting', 'buddypress' ) 139 140 ); 140 141 } 141 142 143 // Only the current user (and capabile community moderators) 144 $this->visibility_levels['adminsonly'] = array( 145 'id' => 'adminsonly', 146 'label' => _x( 'Only Self', 'Visibility level setting', 'buddypress' ), 147 'description' => _x( 'Private. Visible only to oneself', 'Visibility level setting', 'buddypress' ) 148 ); 149 142 150 // Tables 143 151 $global_tables = array( 144 152 'table_name_data' => $bp->table_prefix . 'bp_xprofile_data',