Changeset 13394 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 01/06/2023 11:58:20 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r13393 r13394 1310 1310 // If the current user and displayed user are friends, show all. 1311 1311 } elseif ( bp_is_active( 'friends' ) && friends_check_friendship( $displayed_user_id, $current_user_id ) ) { 1312 $hidden_levels = array( 'adminsonly' ,);1312 $hidden_levels = array( 'adminsonly' ); 1313 1313 1314 1314 // Current user is logged in but not friends, so exclude friends-only. 1315 1315 } else { 1316 $hidden_levels = array( 'friends', 'adminsonly' ,);1316 $hidden_levels = array( 'friends', 'adminsonly' ); 1317 1317 } 1318 1318 1319 1319 // Current user is not logged in, so exclude friends-only, loggedin, and adminsonly. 1320 1320 } else { 1321 $hidden_levels = array( 'friends', 'loggedin', 'adminsonly' ,);1321 $hidden_levels = array( 'friends', 'loggedin', 'adminsonly' ); 1322 1322 } 1323 1323
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)